Get Velocity: Difference between revisions
(Updated the page) |
-u ndefined- (talk | contribs) m (Add example and Related section) |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
|image=Get Velocity.png | |image=Get Velocity.png | ||
|type=s | |type=s | ||
|folder= | |folder=physics | ||
|input1={{Port|o}} | |input1={{Port|o}} | ||
|output1={{Port|v|Velocity}} | |output1={{Port|v|Velocity}} | ||
|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]] |
Latest revision as of 13:22, 13 June 2025
Get Velocity
Type | Script block |
Collider | None |
Folder | Physics |
Ports | |
---|---|
Inputs | Object |
Outputs | 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.
