Instantaneously sets a physical object's directional (units/second) and angular velocity (degrees/second).

Set Velocity
Set_Velocity.png
TypeScript block
ColliderNone
FolderPhysics
Ports
Inputs Before
Object
Velocity
Spin
Outputs After

Notes

This should be used sparingly. No real object can instantaneously change its velocity, and simulated objects may behave weirdly when forced to do so.

Example

Add a "speed limit" to a physical object. By checking whenever the distance of an object's velocity exceeds a set limit, we can normalize and scale to it:

 

Related