Help: How to constrain up vector? Implementing helicopter

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

Moderator: Moderators

Post Reply
superema
Posts: 9
Joined: Sun Jan 03, 2010 2:44 pm

Help: How to constrain up vector? Implementing helicopter

Post by superema »

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
mbonk
Moderator
Moderator
Posts: 181
Joined: Mon Dec 04, 2006 4:06 am

Post by mbonk »

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

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

Post by superema »

Is this example in the last version of SDK? I'm using an older one, maybe I've to go and catch it.
Post Reply