Linear Velocity Physics Constraint vs setting AssemblyLinearVelocity

I noticed that both Linear Velocity and assembly linear velocity do the exact same thing basically. What are the primary differences? Is it that linear velocity is constant velocity while AssemblyLinearVelocity is just impulse? If so then what is the difference between AssemblyLinearVelocity and ApplyImpulse?

Linear Velocity changes the velocity with real physics, which can be better for complicated structures and stuff. Directly writing the AssemblyLinearVelocity is instantaneous which can bug things out if they don’t react nicely to sudden changes (cough cough physics constraints)

ApplyImpulse is easier to use if you want to apply a specific amount of force to a body; it directly manipulates the momentum. Applying the same impulse to two objects of different masses will make them move differently.
Directly writing the velocity is if you want to set a specific velocity regardless of the mass of the body. You don’t care about it’s original velocity too, you just tell it what to become.

1 Like

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