relative to global acceleration conversion...

Blitz3D Forums/Blitz3D Programming/relative to global acceleration conversion...

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.

like this:

TFormVector RelativeXVel#,RelativeYVel#,RelativeZVel#,camera,0
GlobalXVel# = TFormedX()
GlobalYVel# = TFormedY()
GlobalZVel# = TFormedZ()


oh, and by the way... its velocity that changes position, acceleration changes velocity:

xaccel# = 0.0
yaccel# = -10.0
zaccel# = 1.0

xvel# = xvel# + xaccel#
yvel# = yvel# + yaccel#
zvel# = zvel# + zaccel#

xpos# = xpos# + xvel#
ypos# = ypos# + yvel#
zpos# = zpos# + zvel#


catch me on irc if you want more help etc, i know a lot of useless junk like this ;)