mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
rotate whiteboard
This commit is contained in:
parent
5a6e0e4d80
commit
bdcc621996
2 changed files with 6 additions and 15 deletions
|
@ -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({
|
||||
|
|
|
@ -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 = [];
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue