mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 18:30:42 +02: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({
|
var whiteboard = new Whiteboard({
|
||||||
x: 1104,
|
x: 1104,
|
||||||
y: 460,
|
y: 460.5,
|
||||||
z: -77
|
z: -77
|
||||||
|
},{
|
||||||
|
x:0,
|
||||||
|
y:-133,
|
||||||
|
z:0
|
||||||
});
|
});
|
||||||
|
|
||||||
var myPlant = new Plant({
|
var myPlant = new Plant({
|
||||||
|
|
|
@ -16,20 +16,7 @@ var MARKER_SCRIPT_URL = Script.resolvePath("markerEntityScript.js?" + Math.rando
|
||||||
|
|
||||||
Whiteboard = function(spawnPosition, spawnRotation) {
|
Whiteboard = function(spawnPosition, spawnRotation) {
|
||||||
|
|
||||||
var orientation = MyAvatar.orientation;
|
var orientation = Quat.fromPitchYawRollDegrees(spawnRotation.x,spawnRotation.y,spawnRotation.z);
|
||||||
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 markers = [];
|
var markers = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue