Obtaining a vector for direction of an entity

Blitz3D Forums/Blitz3D Programming/Obtaining a vector for direction of an entity

;Transform a forward vector from entity space to world space
TformVector 0,0,1,entity,0

;Get the entitys vector in world space
vx# = TformedX()
vy# = TformedY()
vz# = TformedZ()