mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 03:04:33 +02:00
update to new angular velocity
This commit is contained in:
parent
fff567d854
commit
5701ad2e8c
2 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ mapping.from(function() {
|
|||
translation: translation,
|
||||
rotation: rotation,
|
||||
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;
|
||||
}).debug(true).to(Controller.Standard.LeftHand);
|
||||
|
|
|
@ -53,7 +53,7 @@ namespace controller {
|
|||
vec3FromScriptValue(translation, pose.translation);
|
||||
quatFromScriptValue(rotation, pose.rotation);
|
||||
vec3FromScriptValue(velocity, pose.velocity);
|
||||
quatFromScriptValue(angularVelocity, pose.angularVelocity);
|
||||
vec3FromScriptValue(angularVelocity, pose.angularVelocity);
|
||||
pose.valid = true;
|
||||
} else {
|
||||
pose.valid = false;
|
||||
|
|
Loading…
Reference in a new issue