mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 22:36:57 +02:00
one more try
This commit is contained in:
parent
a689d52004
commit
65b9aaed1b
1 changed files with 3 additions and 2 deletions
|
@ -111,8 +111,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
this.clickDownOnEntity = function(entityID, mouseEvent) {
|
this.clickDownOnEntity = function(entityID, mouseEvent) {
|
||||||
// If entity is clicked, jump to seat
|
// If entity is clicked, sit
|
||||||
|
|
||||||
props = Entities.getEntityProperties(entity, [ "position", "rotation" ]);
|
props = Entities.getEntityProperties(entity, [ "position", "rotation" ]);
|
||||||
if ((state === STANDING) && isSeatOpen(props.position, sitDistance)) {
|
if ((state === STANDING) && isSeatOpen(props.position, sitDistance)) {
|
||||||
moveToSeat(props.position, props.rotation);
|
moveToSeat(props.position, props.rotation);
|
||||||
|
@ -123,6 +122,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
this.startFarTrigger = function() {
|
this.startFarTrigger = function() {
|
||||||
|
// If entity is far clicked, sit
|
||||||
|
props = Entities.getEntityProperties(entity, [ "position", "rotation" ]);
|
||||||
if ((state === STANDING) && isSeatOpen(props.position, sitDistance)) {
|
if ((state === STANDING) && isSeatOpen(props.position, sitDistance)) {
|
||||||
moveToSeat(props.position, props.rotation);
|
moveToSeat(props.position, props.rotation);
|
||||||
enterSitPose();
|
enterSitPose();
|
||||||
|
|
Loading…
Reference in a new issue