Set Velocity: Difference between revisions

Use Image template, remove excess details and explain example
m (Use infobox)
(Use Image template, remove excess details and explain example)
 
Line 10: Line 10:
}}
}}


Instantaneously sets a physical object's directional velocity (units/second) and angular velocity (degrees/second).
Instantaneously sets a physical object's directional (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 ==
== Notes ==
Line 25: Line 19:
== Example ==
== Example ==


Add a "speed limit" to a physical object:
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:


[[File:Set_Velocity_example.png]]
{{Image|Set_Velocity_example.png}}


== Related ==
== Related ==