update to new angular velocity

This commit is contained in:
Brad Hefta-Gaub 2015-12-18 12:38:50 -08:00
parent fff567d854
commit 5701ad2e8c
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ mapping.from(function() {
translation: translation, translation: translation,
rotation: rotation, rotation: rotation,
velocity: { x: 0, y: 0, z: 0 }, velocity: { x: 0, y: 0, z: 0 },
angularVelocity: { x: 0, y: 0, z: 0, w: 1 } angularVelocity: { x: 0, y: 0, z: 0 }
}; };
return pose; return pose;
}).debug(true).to(Controller.Standard.LeftHand); }).debug(true).to(Controller.Standard.LeftHand);

View file

@ -53,7 +53,7 @@ namespace controller {
vec3FromScriptValue(translation, pose.translation); vec3FromScriptValue(translation, pose.translation);
quatFromScriptValue(rotation, pose.rotation); quatFromScriptValue(rotation, pose.rotation);
vec3FromScriptValue(velocity, pose.velocity); vec3FromScriptValue(velocity, pose.velocity);
quatFromScriptValue(angularVelocity, pose.angularVelocity); vec3FromScriptValue(angularVelocity, pose.angularVelocity);
pose.valid = true; pose.valid = true;
} else { } else {
pose.valid = false; pose.valid = false;