Matrix Math Question

Miscellaneous Forums/General Discussion/Matrix Math Question

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Something like this:

function tformvector( vec:Vector3,from:Entity,to:Entity)
  if from then vec = from.matrix.MultiplyVector3( vec )
  if to then vec = to.inversematrix.MultiplyVector3( vec )
  return vec
endfunction