When I use applyTorque, I'm getting unexpected results. Since applyForce calls applyTorque, applyForce is producing unexpected results as well. Here's what I'm seeing:
applyTorque(new Vector3f(10f, 0f, 0f)) - object rotates around global y axis. Expected rotation around global x.
applyTorque(new Vector3f(0f, 10f, 0f)) - object rotates around global x axis. Expected rotation around global y.
applyTorque(new Vector3f(0f, 0f, 10f)) - object rotates around global z axis as expected.
Looking through documentation, demos, forums, etc, I have found very little information about applyTorque. Is the above behavior expected, or is there a bug somewhere?
I am using the latest version of JBullet.
Thanks in advance for taking the time to respond, and thanks to all contributors to Bullet / JBullet.
Matt
applyTorque and applyForce not working as expected (JBullet)
-
- Posts: 1
- Joined: Fri Oct 02, 2009 10:55 pm
-
- Posts: 11
- Joined: Fri Dec 18, 2009 7:19 pm
-
- Posts: 21
- Joined: Tue Nov 03, 2009 8:33 am
Re: applyTorque and applyForce not working as expected (JBullet)
Hi , Have you solved your problems, I also want to know something about this, so can you give me some advices? Thank you !guiramos wrote:Solved?