How do you use setPhysicsRotation()? I can’t seem to figure it out… this is all I got [java]box_geo.getControl(RigidBodyControl.class).setPhysicsRotation(new Vector3f(1.0f,1.0f,1.0f));[/java]
Are you looking at any of the docs or just plugging random things in to see if they work? Using the docs is probably the easier way.
http://hub.jmonkeyengine.org/javadoc/com/jme3/bullet/objects/PhysicsRigidBody.html#setPhysicsRotation(com.jme3.math.Quaternion)
Thanks for the useful link, that will help me out in the future Well is any way that you could give me a working example of rotating a physical object?
Sorry, I’m just really new to this stuff
@crimsonkomodo777 hello man!
There was a discussion about how to use physics for rigidBody.
http://hub.jmonkeyengine.org/groups/user-code-projects/forum/topic/jme-simple-examples-project/?topic_page=2&num=15
As i understand - setPhysicRotation() is used only to set your physics for the first time. Then if you want to change rotation of object dynamically you should use applyTorque() method.
You can check my example with a spaceship: http://code.google.com/p/jme-simple-examples/source/browse/#hg%2FJMESimpleExamples%2Fsrc%2Fcom%2Fspaceship
Also, you must know basics of the vector math.
https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:math_for_dummies
Also, you must know basics of the vector math.
https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:math_for_dummies
I've never gotten such a useful link...thanks so much man! I've just learned alot from that link haha :D I've now got it working. Thank you!
Look in the upper right:
They are all there. You should spend some time finding the documentation since it seems like you were not aware of the javadoc and were not aware of the quick help. Maybe you haven’t looked at the tutorials either?