Rotating objects in relation to the camera

Blitz3D Forums/Blitz3D Beginners Area/Rotating objects in relation to the camera

fox95871(Posted 2010) [#1]
Hi, could someone good at advanced commands please help me with this? I got really far and now I'm stuck. I want to make it so no matter what, the arm always moves in whatever way the selected rotation icon shows. The way it is now, that only happens at the beginning. Consecutive changes always mess it up.

(Link removed. Please see post 3.)

Last edited 2010


Oiduts Studios(Posted 2010) [#2]
I got a 404 on the link.


fox95871(Posted 2010) [#3]
Sorry about that. Try this instead please.

http://www.mediafire.com/?x4lpzjl1ajgkklk

Last edited 2010


Warner(Posted 2010) [#4]
I didn't try your link, but maybe you could do it like this:
TFormVector -1, 0, 0, camera, 0  ;tform vector from camera-space into global space
TranslateEntity arm, TFormedX(), TFormedY(), TFormedZ() ;move arm



fox95871(Posted 2010) [#5]
Would you mind stepping me through it a little? I'm not good at this kind of stuff.