How would I increase the strength of a body velocity. Currently I need to move a train but its density is too high and it cant move it. I cant make the density lower as it may be able to be pushed by other players
BodyForce was deprecated quite a while ago, Try using VectorForce or BodyVelocity instead.
My apologize, i made a mistake in my post, I meant body velocity, not force
Well… Bodyvelocity is still deprecated but to ignore the weight/density of objects you just have to add a math.huge to its maxforce
BodyVelocity.MaxForce = math.huge
Or you could just change all the parts of the train to massless.
2 Likes
The bodyVelocity is still affected by the density when i do this
nevermind, I fix it and also found an error in your code. It should be
engine.BodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
1 Like
A cool optimized and readablility tip.
Do this instead:
bodyVelocity.MaxForce = Vector3.one * math.huge
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.