mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-29 08:01:33 +02:00
Update hard-coded vec3 zero with Vec3.ZERO
This commit is contained in:
parent
2728654d35
commit
e800a6e030
1 changed files with 4 additions and 2 deletions
|
@ -284,9 +284,11 @@ SelectionManager = (function() {
|
||||||
properties.parentJointIndex = null;
|
properties.parentJointIndex = null;
|
||||||
properties.localPosition = properties.position;
|
properties.localPosition = properties.position;
|
||||||
properties.localRotation = properties.rotation;
|
properties.localRotation = properties.rotation;
|
||||||
properties.velocity = { x: 0, y: 0, z: 0 };
|
|
||||||
properties.angularVelocity = { x: 0, y: 0, z: 0 };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
properties.localVelocity = Vec3.ZERO;
|
||||||
|
properties.localAngularVelocity = Vec3.ZERO;
|
||||||
|
|
||||||
delete properties.actionData;
|
delete properties.actionData;
|
||||||
var newEntityID = Entities.addEntity(properties);
|
var newEntityID = Entities.addEntity(properties);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue