How would I go about calculating a force that makes a part hover as if there were a transparent part below it? It would need to be a very stiff and responsive force. I can’t find any info about this sort of thing anywhere so any help is appreciated.
You need to calculate the force that equals that of the accelleration, i.e. Gravity.
From the formula F=ma:
a is going to be workspace.Gravity, m is the mass of the part you want to hover, so Part.Mass, and F is the force that you would need.
In code:
Force = workspace.Gravity * Part.Mass
This force needs to be entirely vertical.
I know this part already, what I meant was a force that would keep the part up when it encounters obstacles, and it would have to be a certain amount of studs above the ground at all times, sort of like a Humanoid’s HipHeight or an AlignPosition.