mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:44:21 +02:00
rearrange when avatar collisions are adjusted
This commit is contained in:
parent
8f2f14c9e5
commit
472ff89f48
1 changed files with 9 additions and 3 deletions
|
@ -348,6 +348,9 @@ function MyController(hand, triggerAction) {
|
|||
|
||||
this.continueDistanceHolding = function() {
|
||||
if (this.triggerSmoothedReleased()) {
|
||||
// HACK -- until we have collision groups, don't allow held object to collide with avatar
|
||||
this.revertAvatarCollisions();
|
||||
|
||||
this.state = STATE_RELEASE;
|
||||
return;
|
||||
}
|
||||
|
@ -431,6 +434,9 @@ function MyController(hand, triggerAction) {
|
|||
this.disableAvatarCollisions();
|
||||
|
||||
if (this.triggerSmoothedReleased()) {
|
||||
// HACK -- until we have collision groups, don't allow held object to collide with avatar
|
||||
this.revertAvatarCollisions();
|
||||
|
||||
this.state = STATE_RELEASE;
|
||||
return;
|
||||
}
|
||||
|
@ -477,6 +483,9 @@ function MyController(hand, triggerAction) {
|
|||
|
||||
this.continueNearGrabbing = function() {
|
||||
if (this.triggerSmoothedReleased()) {
|
||||
// HACK -- until we have collision groups, don't allow held object to collide with avatar
|
||||
this.revertAvatarCollisions();
|
||||
|
||||
this.state = STATE_RELEASE;
|
||||
return;
|
||||
}
|
||||
|
@ -608,9 +617,6 @@ function MyController(hand, triggerAction) {
|
|||
|
||||
this.release = function() {
|
||||
|
||||
// HACK -- until we have collision groups, don't allow held object to collide with avatar
|
||||
this.revertAvatarCollisions();
|
||||
|
||||
this.lineOff();
|
||||
|
||||
if (this.grabbedEntity !== null) {
|
||||
|
|
Loading…
Reference in a new issue