0 registered members (),
1,295
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: How to measure rpm of an object?
[Re: peteredlin]
#351205
12/22/10 18:48
12/22/10 18:48
|
Joined: Nov 2007
Posts: 2,568 Germany, BW, Stuttgart
MasterQ32
Expert
|
Expert
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
|
var lastroll = my.roll;
var rpm = 0;
while(1)
{
rpm = abs(lastroll - my.roll) / time_step;
//do your movement stuff here
lastroll = my.roll;
wait(1);
}
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|