Pointentity Problem

Blitz3D Forums/Blitz3D Programming/Pointentity Problem

All the tformpoint 0,0,0,Target, Source does is finds out what position the Target is relative to the Source in the Sources local coords. Using the tform commands means that scale and rotation of the source are taken into consideration.

I use the tform commands alot and they are probably the most useful commands in blitz for me.

There are loads of uses, too many to list ...

(2) Applying pseudo fiction to a road tyre.

Say Vx, Vy and Vz represent the world velocity of the tyre. Clearly a tyre can be moving in a different direction to the way it's pointing. To get the velocity relative to the direction the tyre is pointing use :

tformvector Vx#, Vy#, Vz#, 0 , TyreMesh


Then, to reduce the velocity on the lateral and longitudinal directions relative to the direction of the tyre ..

Vx# = tformedx() * .75
Vy# = tformedy()
Vz# = tformedz() * .99


Then to get the new vx, vy , vz in world coords ...

tformvector Vx, Vy, Vz, TyreMesh, 0
Vx# = tformedx()
Vy# = tformedy()
Vz# = tformedz()


(3) World to World
This is pretty pointless as the assumption with world coords is that there is no rotation or scale.

Is there anything specific you don't understand?

Stevie