Python Rotations and Positions

Simple, right? I want a laser aimer for my space ship (as a pickup)
I know about the render.drawLine command, and can use that fine.

Now what I need to know is how to get the object’s position and rotation to use. (so it aims in the same direction as the ship is facing.

I think there should be a simple way, but can’t think of it.

I use 2.57

If you want to use a ray, I think you can use obj.localOrientation[1] - that should refer to a three value list of vectors, like:

[[1, 0, 0], [0, 1, 0], [0, 0, 1]]

Add that to obj.worldPosition, and it should work out fine.