Rotation locked to 180 degrees with AWPKinematicCharacterController

Software: Away3D 4.x

Antoine, Newbie
Posted: 30 January 2012 10:50 AM   Total Posts: 6

Hello,


I’m trying to move a character in AwayPhysics world on Away3D 4.
I use the class called “AWPKinematicCharacterController” but I can’t rotate the character more than 180 degrees around it. The object rotate on 90 degrees on its left and 90 degrees to its right but no more.

Is there any option to amplify this angle of rotation ? Is there a default limit to rotate characters ? Any other solution?


Thank you very much,

Antoine

 

File Attachments
Main.as  (File Size: 4KB - Downloads: 798)
Main.zip  (File Size: 2KB - Downloads: 539)
   

Yang Li, Administrator
Posted: 31 January 2012 01:48 AM   Total Posts: 80   [ # 1 ]

This is caused by the gimbal lock. try this:

rotationY ++;
perso.ghostObject.rotation = new Vector3D(0, rotationY, 0);

   

Antoine, Newbie
Posted: 31 January 2012 10:33 AM   Total Posts: 6   [ # 2 ]

Thank you for your response !

I try this and It works, Thank you very much.

   

dagorin, Newbie
Posted: 11 July 2014 02:12 AM   Total Posts: 6   [ # 3 ]

I’m having the same issue, but that fix doesn’t help.  If I continue to turn left or right past 90 degrees it ping pongs back and forth, reversing the action each time it bounces (left becomes right and vice versa).

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X