From f48d304df02f21ae7e2bd0d56cd7e45512dc2f16 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Thu, 4 Dec 2014 10:03:54 -0800 Subject: [PATCH] Add registrationPoint to SelectionManager --- examples/libraries/entitySelectionTool.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/libraries/entitySelectionTool.js b/examples/libraries/entitySelectionTool.js index 40b5b78a31..0622e4c72c 100644 --- a/examples/libraries/entitySelectionTool.js +++ b/examples/libraries/entitySelectionTool.js @@ -33,10 +33,12 @@ SelectionManager = (function() { that.localRotation = Quat.fromPitchYawRollDegrees(0, 0, 0); that.localPosition = { x: 0, y: 0, z: 0 }; that.localDimensions = { x: 0, y: 0, z: 0 }; + that.localRegistrationPoint = { x: 0.5, y: 0.5, z: 0.5 }; that.worldRotation = Quat.fromPitchYawRollDegrees(0, 0, 0); that.worldPosition = { x: 0, y: 0, z: 0 }; that.worldDimensions = { x: 0, y: 0, z: 0 }; + that.worldRegistrationPoint = { x: 0.5, y: 0.5, z: 0.5 }; that.centerPosition = { x: 0, y: 0, z: 0 }; that.saveProperties = function() { @@ -153,6 +155,7 @@ SelectionManager = (function() { that.localDimensions = properties.dimensions; that.localPosition = properties.position; that.localRotation = properties.rotation; + that.localRegistrationPoint = properties.registrationPoint; that.worldDimensions = properties.boundingBox.dimensions; that.worldPosition = properties.boundingBox.center;