|
@@ -2211,12 +2211,6 @@ this.getYaw = function() { |
|
|
* @returns {Viewer} `this` |
|
|
* @returns {Viewer} `this` |
|
|
*/ |
|
|
*/ |
|
|
this.setYaw = function(yaw, animated) { |
|
|
this.setYaw = function(yaw, animated) { |
|
|
while (yaw > 180) { |
|
|
|
|
|
yaw -= 360; |
|
|
|
|
|
} |
|
|
|
|
|
while (yaw < -180) { |
|
|
|
|
|
yaw += 360; |
|
|
|
|
|
} |
|
|
|
|
|
animated = animated == undefined ? 1000: Number(animated); |
|
|
animated = animated == undefined ? 1000: Number(animated); |
|
|
if (animated) { |
|
|
if (animated) { |
|
|
animatedMove.yaw = { |
|
|
animatedMove.yaw = { |
|
|