Vectors in Panda3D

How to get the direction of an object other than getX,getY,getZ function. Is vector geometry helpful? if so plz help us to understand the concepts of vectors.

Maybe you’re looking for getHpr().

what is the use of getHpr()?

Look at the sheet “Positioning Pandas”.

getHpr is not a vector, though. You can use getRelativeVector with the forward vector (Vec3.forward()) to get the vector in another coordinate space, such as the one of the parent node.

cochin Kerala India[/list]