Set Velocity

From Fancade Wiki
Revision as of 13:02, 20 May 2024 by -u ndefined- (talk | contribs) (Use infobox)
Set Velocity
Set_Velocity.png
TypeScript block
ColliderNone
FolderPhysics
Ports
Inputs Before
Object
Velocity
Spin
Outputs After

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

Inputs:

  • Object: The object to be modified.
  • Velocity: the velocity to be set with.
  • Spin: the angular velocity to be set with.

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:

Related