mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 14:12:50 +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.localPosition = properties.position;
|
||||
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;
|
||||
var newEntityID = Entities.addEntity(properties);
|
||||
|
||||
|
|
Loading…
Reference in a new issue