rotate whiteboard

This commit is contained in:
James B. Pollack 2016-03-17 10:32:24 -07:00
parent 5a6e0e4d80
commit bdcc621996
2 changed files with 6 additions and 15 deletions

View file

@ -130,8 +130,12 @@
var whiteboard = new Whiteboard({
x: 1104,
y: 460,
y: 460.5,
z: -77
},{
x:0,
y:-133,
z:0
});
var myPlant = new Plant({

View file

@ -16,20 +16,7 @@ var MARKER_SCRIPT_URL = Script.resolvePath("markerEntityScript.js?" + Math.rando
Whiteboard = function(spawnPosition, spawnRotation) {
var orientation = MyAvatar.orientation;
orientation = Quat.safeEulerAngles(orientation);
var markerRotation = Quat.fromVec3Degrees({
x: orientation.x + 10,
y: orientation.y - 90,
z: orientation.z
})
orientation.x = 0;
var whiteboardRotation = Quat.fromVec3Degrees({
x: 0,
y: orientation.y,
z: 0
});
orientation = Quat.fromVec3Degrees(orientation);
var orientation = Quat.fromPitchYawRollDegrees(spawnRotation.x,spawnRotation.y,spawnRotation.z);
var markers = [];