mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-10 17:23:15 +02:00
wrap far trigger too with seated check
This commit is contained in:
parent
0ad9a8625b
commit
a689d52004
1 changed files with 2 additions and 3 deletions
|
@ -99,7 +99,6 @@
|
|||
var howFar = howFarAway(props.position);
|
||||
if ((state === STANDING) && (howFar < sitDistance) && isSeatOpen(props.position, sitDistance)) {
|
||||
moveToSeat(props.position, props.rotation);
|
||||
//MyAvatar.characterControllerEnabled = true;
|
||||
enterSitPose();
|
||||
state = SITTING;
|
||||
debugPrint("Sitting from being close");
|
||||
|
@ -117,7 +116,6 @@
|
|||
props = Entities.getEntityProperties(entity, [ "position", "rotation" ]);
|
||||
if ((state === STANDING) && isSeatOpen(props.position, sitDistance)) {
|
||||
moveToSeat(props.position, props.rotation);
|
||||
//MyAvatar.characterControllerEnabled = false;
|
||||
enterSitPose();
|
||||
state = SITTING;
|
||||
debugPrint("Sitting from mouse click");
|
||||
|
@ -125,11 +123,12 @@
|
|||
}
|
||||
|
||||
this.startFarTrigger = function() {
|
||||
if ((state === STANDING) && isSeatOpen(props.position, sitDistance)) {
|
||||
moveToSeat(props.position, props.rotation);
|
||||
//MyAvatar.characterControllerEnabled = false;
|
||||
enterSitPose();
|
||||
state = SITTING;
|
||||
debugPrint("Sitting from far trigger");
|
||||
}
|
||||
}
|
||||
|
||||
this.checkSettings = function() {
|
||||
|
|
Loading…
Reference in a new issue