Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you detect if a part is spinning?

Asked by
Lodok3 18
5 years ago

Is there any way to detect a spinning part, like a hamster wheel for example? Also is there any way to detect how far a part has spun?

0
you spin me right round baby right round like a record baby right round right round Elixcore 1337 — 5y
0
wut Lodok3 18 — 5y
0
you could detect when its .Orientation changes and as far as tracking how far that would be a lot of math Donut792 216 — 5y
0
If you use a hinge it includes the rotation speed. User#5423 17 — 5y

1 answer

Log in to vote
0
Answered by
vkax 85
5 years ago

I mean, I can give a logical answer, not a script.

Basically you just have to record the old position and compare it to the current position with a little delay, basic as that, you can detect if it's moving. Another thing you can do is estimate the current position with how much movement it does and see if the old position and that match up.

If this doesn't work, please do not down vote me

Ad

Answer this question