mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 13:58:51 +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() {
|
this.continueDistanceHolding = function() {
|
||||||
if (this.triggerSmoothedReleased()) {
|
if (this.triggerSmoothedReleased()) {
|
||||||
|
// HACK -- until we have collision groups, don't allow held object to collide with avatar
|
||||||
|
this.revertAvatarCollisions();
|
||||||
|
|
||||||
this.state = STATE_RELEASE;
|
this.state = STATE_RELEASE;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -431,6 +434,9 @@ function MyController(hand, triggerAction) {
|
||||||
this.disableAvatarCollisions();
|
this.disableAvatarCollisions();
|
||||||
|
|
||||||
if (this.triggerSmoothedReleased()) {
|
if (this.triggerSmoothedReleased()) {
|
||||||
|
// HACK -- until we have collision groups, don't allow held object to collide with avatar
|
||||||
|
this.revertAvatarCollisions();
|
||||||
|
|
||||||
this.state = STATE_RELEASE;
|
this.state = STATE_RELEASE;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -477,6 +483,9 @@ function MyController(hand, triggerAction) {
|
||||||
|
|
||||||
this.continueNearGrabbing = function() {
|
this.continueNearGrabbing = function() {
|
||||||
if (this.triggerSmoothedReleased()) {
|
if (this.triggerSmoothedReleased()) {
|
||||||
|
// HACK -- until we have collision groups, don't allow held object to collide with avatar
|
||||||
|
this.revertAvatarCollisions();
|
||||||
|
|
||||||
this.state = STATE_RELEASE;
|
this.state = STATE_RELEASE;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -608,9 +617,6 @@ function MyController(hand, triggerAction) {
|
||||||
|
|
||||||
this.release = function() {
|
this.release = function() {
|
||||||
|
|
||||||
// HACK -- until we have collision groups, don't allow held object to collide with avatar
|
|
||||||
this.revertAvatarCollisions();
|
|
||||||
|
|
||||||
this.lineOff();
|
this.lineOff();
|
||||||
|
|
||||||
if (this.grabbedEntity !== null) {
|
if (this.grabbedEntity !== null) {
|
||||||
|
|
Loading…
Reference in a new issue