This commit is contained in:
James Pollack 2015-11-11 14:51:20 -08:00
parent 9681145a1f
commit ffe9036755

View file

@ -758,7 +758,7 @@ function MyController(hand) {
if (this.actionTimeout - now < ACTION_TTL_REFRESH * MSEC_PER_SEC) {
// if less than a 5 seconds left, refresh the actions ttl
Entities.updateAction(this.grabbedEntity, this.actionID, {
var success = Entities.updateAction(this.grabbedEntity, this.actionID, {
hand: this.hand === RIGHT_HAND ? "right" : "left",
timeScale: NEAR_GRABBING_ACTION_TIMEFRAME,
relativePosition: this.offsetPosition,
@ -767,6 +767,8 @@ function MyController(hand) {
kinematic: NEAR_GRABBING_KINEMATIC,
kinematicSetVelocity: true
});
print('Action update success:::'+success);
this.actionTimeout = now + (ACTION_TTL * MSEC_PER_SEC);
}
};