Get Position: Difference between revisions

From Fancade Wiki
(Created page with "Given an object, outputs its position and rotation. If the pink input is unwired, outputs the position of the block itself (or the block it is inside). Specifically, it gives the position of the object's center of mass. /uploads/Get Position.png Category:Blocks ")
 
No edit summary
Line 1: Line 1:
Given an object, outputs its position and rotation. If the pink input is unwired, outputs the position of the block itself (or the block it is inside).
{{Block
|image=Get Position.png
|type=s
|folder=objects
|input1={{Port|o}}
|output1={{Port|v|Position}}
|output2={{Port|r}}
}}
 
Given an object, outputs its position and rotation.
If the input is unwired, outputs the position of the block itself (or the block it is inside).


Specifically, it gives the position of the object's center of mass.
Specifically, it gives the position of the object's center of mass.
[[width=336px|/uploads/Get Position.png]]




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

Revision as of 19:39, 18 May 2024

Get Position
Get Position.png
TypeScript block
ColliderNone
FolderObjects
Ports
Inputs Object
Outputs Position
Rotation

Given an object, outputs its position and rotation. If the input is unwired, outputs the position of the block itself (or the block it is inside).

Specifically, it gives the position of the object's center of mass.