Pointentity Problem

Blitz3D Forums/Blitz3D Programming/Pointentity Problem

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.

Stevie G -

Your DeltaRoll function works like a charm, but like a charm it feels like magic, magic that I can't seem yet to divine.

How does "TFormPoint 0, 0, 0, Target, Source" produce different TFormedX and Y values as the Source rotates? I really don't understand how 2 absolute points can be compared in this command in order to get a rotation angle for a Source that can be pointing in any direction to point to a Target entity (doesn't matter which way this entity points). But as I already said, it works, so what voodoo does it do?

Along with the above question, I'm also confused by any TForm command that doesn't use an entity as the source and 3D space (i.e., 0) as the destination which seems to be the only examples in the Blitz help docs...seems like the following (potentially more complex?) permutations are also possible:
1) entity, entity (as in your example above and related to this posting)
2) 3D world, entity (as in some other examples I've seen)
3) 3D world, 3D world (I assume this is possible?)

Any clarification on these would allow me to keep at least the rest of my hair, and, of course, thanks for all your past help in the forum.