Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  JavaScript    How to get properties of an object

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Junior Member
Posted
I have a model of the plane and I need to rotate it on specifyed angels. I do it with 3 textfields so if you wanna rotate it around some axis you can do it. Everything is OK, but when user rotates (and moves) my object with _mouse_ it's very nesessary to put new coordinates and angels. Where and how can I get 'em?
 
Posts: 2 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of viewpoint d-d
Posted Hide Post
You have two options, one is to
stop the user from moving your
plane. You can do this with the
camera constraints. Here's an
example, using the CameraRotateMin
and CameraRotateMax:

http://solutions.viewpoint.com/examples/125.zip

The alternative is to use the
getproperty call with which you
can obtain the current camera
position. Here's an example:

http://solutions.viewpoint.com/examples/138.zip

-Derek
 
Posts: 793 | Location: Viewpoint, New York, New York | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Hi,

these links are not working!!

Where else can i see these examples??


thanks!
 
Posts: 39 | Registered: January 11, 2007Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Admin
Posted Hide Post
Trupti,

What you figured out already with camera constraints in Enliven should suffice.
 
Posts: 1188 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  JavaScript    How to get properties of an object