The Reverse Gravity mechanic allows the character to flip their gravity direction. This in combination with the Reverse Gravity Fields can make for some interesting level design!
Example Usage
Flip with Q!
Or Play Here
Setup
Download all the mechanics on the Getting Started page
- Drag the ReverseGravity.cs script (located in Scripts/CharacterMechanics/SideScrollerMechanics) onto the character and you should have the ability! Add a keybind to flip as well:

Customization
Properties
-
-
- Flip – The input to trigger gravity flipping.
- Switchable Midair – Whether the player can switch gravity in midair.
- Velocity Retention – What fraction of the vertical velocity is retained after flipping. A higher value will feel floatier.
-
Events
-
-
- FlipRequested – Fires when the user presses the flip button
- Flipped<int> – Fires when the player flips (by using an input or gravity field) and passes a 1 or -1 depending on the direction they flipped to
-
Caveats/Bugs
- If any offset is given to a follow camera with the reverse gravity enabled, the offset may jump when flipping, as the offset is being flipped to respect the character’s new state. This is intentional, but a camera tweening behavior is being worked on to make smoother.