Find out if a wheel is skidding?
Blitz3D Forums/Blitz3D Programming/Find out if a wheel is skidding?
| ||
Hey peeps... a simple one... Ive had it sussed before with hard coded values but its not good enough anymore. I have the velocities of the wheel in local/global directions, the radius of the wheel, and "rotation speed" of the wheel. What i need to know, is if wheelspin is occuring. (and preferably by how much) IM gessing its pretty simple and i *should* know it, but im not able to think too well this morning :) |
| ||
angularvelocityofthewheel = carspeed / wheelradius so IF (angularvelocityofthewheel * wheelradius) <> carspeed THEN wheelspin = TRUE |
| ||
Hmmm... thats what i've got..... I must be doing something wrong... At least i know the forula is right. I'll look into it some more. Thanks WolRon :) |
| ||
umm... okay, i was typing the formula worong. muhaha i thought the above, but typed: if (Wheelspeed=carspeed*angvelofwheel)<>carvel. Problem solved... and an entire function of 50 lines replaced by one with 5. :) |