Hello everybody,

I’ve written a short program, which uses jBullet. I’ve not been really good at this APi and in Vector Math, so heres my question:

I want throw a ball in an degrees angle on the z-axis with the help of jBullet. I’ve already figured out Math.toRadains, but I don’t know how to use it.

Thank you,

Turakar

https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:math_for_dummies

Create a Quaternion from the axis angle. Multiply that by your vector, and it will rotate the vector

i,e

[java]Vector3f newVec = Quaternion.mult (vector)[/java]

1 Like

thanks