Moving a 3D object along it's own axes

BlitzMax Forums/BlitzMax Programming/Moving a 3D object along it's own axes

Hi
I'm trying to make a small 3D engine and I have some problems.
I have and abject that has a position Pos (a 3 float vector)
It also has a Rot vactor that stores the object's orientation.

I'm trying to make a function named Turn that's supossed to do kind of like whta minib3D does: Modify the position vector using the rotation vector o that the object will move along it's axes (not the global ones).
I tryed looking ath the minib3d code but somehow that doesn't work( just when the rotation vector is 0,0,0)

Any ideea on how to do this?