one more try

This commit is contained in:
Philip Rosedale 2017-01-05 13:13:50 -08:00
parent a689d52004
commit 65b9aaed1b

View file

@ -111,8 +111,7 @@
}
this.clickDownOnEntity = function(entityID, mouseEvent) {
// If entity is clicked, jump to seat
// If entity is clicked, sit
props = Entities.getEntityProperties(entity, [ "position", "rotation" ]);
if ((state === STANDING) && isSeatOpen(props.position, sitDistance)) {
moveToSeat(props.position, props.rotation);
@ -123,6 +122,8 @@
}
this.startFarTrigger = function() {
// If entity is far clicked, sit
props = Entities.getEntityProperties(entity, [ "position", "rotation" ]);
if ((state === STANDING) && isSeatOpen(props.position, sitDistance)) {
moveToSeat(props.position, props.rotation);
enterSitPose();