Skip to main content

Swings

Swings are objects that the player can mount and swing around on.

Use Cases

Swings can be used to create complex gameplay sections and jumps. The player swings in a perfectly circular trajectory around the Swing.

The Swing's sounds can be changed by modifying the Sound objects inside the Sounds folder.

Swing Configuration

NameDefault ValueDescription
AllowJumpDismounttrueWhen true, the Swing is able to be dismounted by jumping.
AnchortrueWhen true, the Swing part will be locked in place below the Top part until the player mounts the Swing. Otherwise, it can move around freely. Recommended to keep as true if you are making moving Swings.
BallSocketModefalseWhen true, the Swing will use a BallSocketConstraint instead of HingeConstraints. Allows 360-degree movement.
Boost0The velocity the player will dismount with. If set to 0, they will preserve the velocity they currently have. Otherwise, they will be launched in the direction the Swing part is facing.
Cooldown1Time in seconds to wait before the Swing can be mounted again after dismounting.
JumpOfftrueWhen true, the player will jump when dismounting. Otherwise, they will simply start falling.

Control Configuration

NameDefault ValueDescription
CanControltrueWhen true, the player will be able to control the movement of the Swing.
Force750The amount of force exerted when the player controls the swing.
MaxVelocity75The maximum speed the swing can move at while being controlled by the player.