local velocity script made


(ineedanewbi) #1

hey,

i made a racing game a while back, and i wanted to know my vehicles local velocity so i could make triggers for things like powerslide sounds/smoke and a speedometer in the Y direction. since own.getLinearVelocity returned the global velocity i was forced to make this script after learning a bit about matricies

http://www.geocities.com/ineedanewbike/LocVel.zip

all you need to do is attach an always to the python script, and put in 3 float properties velx, vely and velz


(Demobobin) #2

good work on the script, nice and neat. this will be very usefull.

thank you :smiley: