mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
Merge pull request #5943 from sethalves/no-avatar-collision-with-held
rearrange when grab script changes avatar collisions
This commit is contained in:
commit
ddbdf2be86
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