Mover Component: Difference between revisions

From Pummel Party Mod Documentation
Jump to navigation Jump to search
(Initial content)
 
(Added component settings table)
Line 1: Line 1:
The mover component is a [[:Category:Gameplay Components|gameplay component]] that applies motion to an object constantly over time.
The mover component is a [[:Category:Gameplay Components|gameplay component]] that applies motion to an object constantly over time.
'''All directions and rotations are in local object space, not world space.'''
== Component Settings ==
{| class="wikitable"
|-
! Property !! Description
|-
|'''Direction Type''' || The direction of movement.
|-
| style="padding-left: 2em;" | '''Direction'''<br/>''Only used if Direction Type is "Custom"'' || An xyz direction vector to move along.
|-
| '''Speed''' || The speed of movement in units/s.
|-
| '''Rotation Axis Type''' || Axis around which to rotate the object.
|-
| style="padding-left: 2em;" | '''Rotation Axis'''<br/>''Only used if Rotation Axis Type is "Custom"'' || An xyz direction vector defining an axis to rotate around.
|-
| '''Rotation Speed''' || The speed of rotation in degrees/s.
|}
== Example Usage ==




[[Category:Gameplay Components]]
[[Category:Gameplay Components]]
[[Category:Components]]
[[Category:Components]]

Revision as of 00:07, 26 October 2022

The mover component is a gameplay component that applies motion to an object constantly over time.

All directions and rotations are in local object space, not world space.

Component Settings

Property Description
Direction Type The direction of movement.
Direction
Only used if Direction Type is "Custom"
An xyz direction vector to move along.
Speed The speed of movement in units/s.
Rotation Axis Type Axis around which to rotate the object.
Rotation Axis
Only used if Rotation Axis Type is "Custom"
An xyz direction vector defining an axis to rotate around.
Rotation Speed The speed of rotation in degrees/s.

Example Usage