Update hard-coded vec3 zero with Vec3.ZERO

This commit is contained in:
Ryan Huffman 2019-02-14 11:59:04 -08:00
parent 2728654d35
commit e800a6e030

View file

@ -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);