Set Position: Difference between revisions

From Fancade Wiki
(Adapted "How do I make an object go in the direction its facing?" article from old wiki)
(link to Object)
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
Line 10: Line 10:
}}
}}


Sets the position and rotation of a given object.
Sets the position and rotation of a given [[object]].


== Examples ==
== Examples ==

Latest revision as of 14:19, 23 August 2025

Set Position
Set_Position.png
TypeScript block
ColliderNone
FolderObjects
Ports
Inputs Before
Object
Position
Rotation
Outputs After

Sets the position and rotation of a given object.

Examples

Make an object move in the direction its facing. The 0,0,0.1 indicates the object points in the positive Z axis by default, and 0.1 is the speed at which the object will move. Note: the object will ignore all obstacles when moving. To make an object move by using physics, use Set Velocity

Rotate example3.png

Related