Get Velocity: Difference between revisions

m
Add example and Related section
mNo edit summary
m (Add example and Related section)
 
Line 7: Line 7:
|output2={{Port|v|Spin}}
|output2={{Port|v|Spin}}
}}
}}
Outputs a physical object's current velocity and angular velocity (spin).
Outputs a physical object's current velocity and angular velocity (spin).
== Example ==
To get the speed of a physics-enabled object, velocity is compared to the point of origin (0, 0, 0) in the [[Distance]] block.
{{Image|Get Velocity get speed example.png}}
== Related ==
* [[Set Velocity]]


[[Category:Blocks]]
[[Category:Blocks]]