Updated HMD grab Clone to work with all entity types.

This commit is contained in:
Mike Moody 2017-05-11 04:16:22 -07:00
parent dae652d3db
commit 89d93ee56d

View file

@ -2162,6 +2162,12 @@ SelectionDisplay = (function() {
position: FAR
});
Overlays.editOverlay(grabberCloner, {
visible: true,
rotation: rotation,
position: EdgeTR
});
var boxPosition = Vec3.multiplyQbyV(rotation, center);
boxPosition = Vec3.sum(position, boxPosition);
Overlays.editOverlay(selectionBox, {
@ -2318,11 +2324,6 @@ SelectionDisplay = (function() {
},
rotation: Quat.fromPitchYawRollDegrees(90, 0, 0),
});
Overlays.editOverlay(grabberCloner, {
visible: stretchHandlesVisible,
rotation: rotation,
position: RIGHT
});
};