Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

Bullet Kinematic Character rotate problem


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 rongshuxiacy   Members   -  Reputation: 122

Like
0Likes
Like

Posted 27 October 2012 - 07:53 AM

I am studying bullet.I've written a program based on OpenGL which can move the character with the mouse click on the screen like Warcraft.I want to know that i got the angle that the character needs to rotate, how can i apply the rotation in the bullet world?
The demo is
btMatrix3x3 orn = m_ghostObject->getWorldTransform().getBasis();
orn *= btMatrix3x3(btQuaternion(btVector3(0,1,0),-0.01));
m_ghostObject->getWorldTransform ().setBasis(orn);

and how to calculate the quaternion?
who can help me!!

Ad:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS