Rotate local xyz around global position (help)

Blitz3D Forums/Blitz3D Programming/Rotate local xyz around global position (help)

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.

Hi all,

I'm in URGENT need of some mathematical assistance...

I've got a GLOBAL position XYZ and a GLOBAL rotation PYR. Then I have 3 LOCAL coordinates (ABC) that act as a 'local offset'.

My Question is: How do I transform those 3 local coordinates ABC around the global coordinates XYZ using the global rotation PYR and obtain those new coordinates?


I basically need what TFormPoint() does. But since I have to do this 'outside of blitz' (in visual basic) I can't use tFormPoint - or any other Blitz3D commands :((
Any help would be a total life safer! ;)

Thanks in advance,

Danny.