Help with rotation and transformation,
Members - Reputation: 122
Posted 13 July 2001 - 01:00 PM
Members - Reputation: 130
Posted 13 July 2001 - 01:31 PM
First, define which AXIS of the person is front (usually Z)
Get Z vector from orientation (3rd row from matrix)
Multiply that vector by a speed factor.
Translate the object by the vector.
And you should have it.
Other ay is to create a vector which the only component is the direction you want (for Z it would be V=(0,0, 10)) and transform it by the orientation matrix and in the end translate the object !