Nudge command
All  1-6  7-8

Previous
Next
 From:  Michael Gibson
7353.7 In reply to 7353.6 
Hi Christopher,

> view.upDownAngle
> view.leftRightAngle
> view.tiltAngle
> What units are these in? Degrees?

Yes, they're in degrees.


> I assume that upDownAngle==0 means looking in a
> horizontal direction. Are positive values up or down?

An upDownAngle==0 means you are looking straight downwards, the up/down and left/right angle values are used as in a Spherical coordinate system as shown here:
http://en.wikipedia.org/wiki/Spherical_coordinate_system

upDownAngle is the angle the eye position is rotated downwards around the world xaxis, and left-right angle is the amount it swings left or right rotating around the zaxis.


> And what is tiltAngle?

tilt angle is the angle of rotation around the view vector, like the roll axis angle shown in this diagram (from Wikipedia):





> Are positive values of leftRightAngle left or right?

It should follow the right-hand rule with the orientation being the world z axis.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  ttype (STRUBE)
7353.8 In reply to 7353.4 
Hi, I've written a 2D version.

It checks which viewport the mouse is over:
https://github.com/thetumbledtype/moi3d-scripts-commands/blob/master/Nudge2D.js
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-6  7-8