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

how to stop a moving platform with bodyforce?

Asked by
wookey12 174
6 years ago
Edited 6 years ago

I have a moving platform. the body force of it is 50. i want it to stop so i make the bodyforce 0. it keeps going the same exact momentum. the only way i could counter this is if i made it -50, but then it will eventually move backwards. is there any way to just stop it from moving?

1 answer

Log in to vote
0
Answered by 6 years ago

I think BodyForce adds force to something but doesn't SET a force to something, which is probably why the BodyForce doesn't do anything when you set it to 0.

You can fix this easily by anchoring the platform. It'll completely freeze and only move again once you un-anchor it.

0
i don't know why i never thought of bodyVelocity, but thanks! it helped a ton! wookey12 174 — 6y
Ad

Answer this question