And help? I don’t know how to add gravity to LinearVelocity…
1 Like
Use plane or linear mode for the VelocityConstraint
I’m not gonna pretend like I know the difference, I’m pretty sure plane just allows for a different method of controlling direction, aswell as different speed adjustment, but for linear mode all you do is set LinearVelocity to the direction you want to go in multiplied by the speed you want to go at.
To assure it’s the right speed, normalize the direction with Direction.Unit
before you multiply it by the speed value.
2 Likes
You really shouldn’t use linear velocity. Use Line forces. And set InverseSquareLaw
to true. That’s gravity using real life formulas.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.