Throwing an Object


I am working on a game where the main character throws an object.
I am using the ProjectileInterval and trying to give a startpos, startVel, and endZ.
I have tried a few different things but cant seem to get it to fly with a forward trajectory.
My question is…Is there and easy/best way to get the forward direction and translate that to a forward starting velocity.

Thanks in advance

There are lots of ways. This is where Panda’s scene graph shines.

Try something like: forward = rock.getRelativeVector(avatar, Vec3(0, 1, 0)).

You can also search the forums for this or related questions, or browse through the NodePath auto-generated API.