How do I suspend an object in mid air?

How do I suspend an object in mid air?

What I’m having trouble with is suspending an object in mid air like some sort of slow motion effect. It doesn’t exactly have to be suspended in air but can be moving just a bit.

What’s really important is that I need it to be able to suspend itself (or go slow mo) in the air when it’s moving too because I know there are other forces acting upon it and I don’t know how to resolve this issue.

you could anchor it or if your doing a slowmo use a tween to make it move slowly down on its y axis

or animate it

I would but that would be faking the fun and if I tweened it or animated it, it would do the same animation every time making it an unnatural effect. It would be better to make it more realistic and more efficient.

create a VectorForce and an attachment positioned in the middle of the part, the Force should have Y set to the part.Mass * workspace.Gravity

But will that suspend it in mid air(or slow mo) if the part is already moving because of a force unrelated to the workspace’s gravitational pull?

If you want to suspend it in mid air and stop it directly you’ll have to inverse the assembly linear velocity and apply it to the vector force

You could set it’s velocity to zero and do the vector force with mass and gravity like previously suggested.

I might be capping about the assembly linear velocity, but essentially you need to inverse the direction vector of the part and apply that as a unit vector force to the part multiplied by the acceleration

Isn’t velocity deprecated tho? I’m not sure if that’s recommended.


Well to simply make it stop moving entirely this works

ahhh I see, can you go more into depth with that? Maybe a script would help, I’m not sure I’ll be able to script an efficient one considering I don’t have much experience with scripting

So I would set that to 0 and then maybe work with vector forces?

Yeah to get rid of any momentum it did have.

well I’ve made something pretty funny trying to come up with an example

script.Parent.Changed:Connect(function()
	
	local Anti = - script.Parent.AssemblyLinearVelocity
	script.Parent.VectorForce.Force = (Anti * workspace.Gravity)
	
end)

this just makes it act like it’s under moon gravity

Thanks again @Sniperkaos and @AC_Starmarine

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.