Get Velocity: Difference between revisions
Nikitaivanov (talk | contribs)  (Created page with "Outputs a physical object's current speed (velocity) and angular speed (spin).  /uploads/Get Velocity.png   Category:Blocks ")  | 
				No edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit  | 
				||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Block  | |||
|image=Get Velocity.png  | |||
|type=s  | |||
|folder=physics  | |||
|input1={{Port|o}}  | |||
|output1={{Port|v|Velocity}}  | |||
|output2={{Port|v|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 00:46, 23 August 2025
Outputs a physical object's current velocity and angular velocity (spin).
Get Velocity
  | Type | Script block | 
| Collider | None | 
| Folder | Physics | 
| Ports | |
|---|---|
| Inputs |  Object | 
| Outputs |  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.