Help: How to constrain up vector? Implementing helicopter

Post questions, comments and feedback to our 3Dconnexion Windows Development Team.

Moderator: Moderators

Help: How to constrain up vector? Implementing helicopter

Postby superema » Thu Sep 23, 2010 8:26 am

Hello,

I'm trying to implement the so called helicopter mode.

I take Axis Angle rotation from Sensor Input and want to move my camera
like an helicopter:

Yaw around the current right vector, Pitch around current up vector (local Z, that is my default Up), no Roll.

In other words I want to constrain up vector on the vertical plane.

Any suggestions?

Many thanks
superema
 
Posts: 9
Joined: Sun Jan 03, 2010 2:44 pm

Postby mbonk » Thu Sep 23, 2010 11:10 pm

Have you had a look at C3dcontroller::C3dcontrollerImpl::helicopterControl() in the s3dm_viewer sample? I think that ought to get you started.

Markus
mbonk
Moderator
Moderator
 
Posts: 140
Joined: Mon Dec 04, 2006 4:06 am

Postby superema » Sun Sep 26, 2010 2:52 am

Is this example in the last version of SDK? I'm using an older one, maybe I've to go and catch it.
superema
 
Posts: 9
Joined: Sun Jan 03, 2010 2:44 pm


Return to Developer's Forum for Windows

Who is online

Users browsing this forum: Exabot [Bot] and 0 guests