mirror of
https://github.com/JulianGro/overte.git
synced 2025-06-04 21:41:08 +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,
|
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);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue