Position Action: Difference between revisions

From Pummel Party Mod Documentation
Jump to navigation Jump to search
(Initial content)
 
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[File:PositionAction.png|thumb|600px|The Position action. This example will move an item 10 units to its right.]]
An action to modify the position of a gameobject.
An action to modify the position of a gameobject.


The action can set the position to a given vector, or add, subtract, multiple or divide the position vector's values by another vector.
The action can set the position to a given vector, or add, subtract, multiply or divide the position vector's values by another vector.
Multiplication and division are performed component wise, with the current position X, Y and Z values each being multiplied/ divided by the provided vector.
Multiplication and division are performed component-wise, with the current position X, Y and Z values each being multiplied/ divided by the provided vector.


Local vs World space changes which position is being edited by the action. ''Local'' is in reference to the object's parent, while ''World'' is relative to the world origin.
Local vs World space changes which position is being edited by the action. ''Local'' is in reference to the object's parent, while ''World'' is relative to the world's origin.


[[Category:Actions]]
[[Category:Actions]]

Latest revision as of 02:31, 16 December 2022

The Position action. This example will move an item 10 units to its right.

An action to modify the position of a gameobject.

The action can set the position to a given vector, or add, subtract, multiply or divide the position vector's values by another vector. Multiplication and division are performed component-wise, with the current position X, Y and Z values each being multiplied/ divided by the provided vector.

Local vs World space changes which position is being edited by the action. Local is in reference to the object's parent, while World is relative to the world's origin.