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

Is there a Way to Make BodyPositions Disregard Friction?

Asked by 4 years ago

I have been trying to use BodyPositions to consistently move characters a specific distance; however, due to what I assume can only be friction (despite testing it multiple times on the same part...), the distance the characters are moved is not consistent. Is there a way to always either disregard friction or counteract it using BodyPositions or should I switch over to using something else (I'm not too familiar with BodyForces or BodyGyros or anything like that, so you'll have to fill me in)? As long as the player moves consistently and takes collisions into account, it should work. Thanks in advance.

1 answer

Log in to vote
0
Answered by
Psudar 882 Moderation Voter
4 years ago

There are a few ways to solve it. If you want to completely get physics out of the equation, doing something like editing the CFrame is quite useful.

However, if you wanna continue using the body movers, I believe body velocities disregard gravity. Afaik, the only friction in roblox is caused by gravity. Theres no default air resistance or anything like that, so it should work.

https://developer.roblox.com/en-us/api-reference/class/BodyVelocity

According to the wiki, BodyPositions also ignore gravity;

https://developer.roblox.com/api-reference/class/BodyPosition

If you truly want something thats consistent 100% of the time though, I'd definitely invest in a bit of Vector magic.

0
I personally really dislike the default body movers so i try and avoid them as much as possible. I think lots of people are like that though. Psudar 882 — 4y
Ad

Answer this question