Vector3f rotation from angle (degrees)

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,

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


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

1 Like