
OmniGravity
Allows gravity in any direction. (READ THE README)Details
OmniGravity
You can use this as a standalone mod, or as a library for your own creations.
The config can be used to adjust the default direction of gravity for all objects.
Please report bugs on the Bopl Battle Modding Discord server, except for:
Known bugs (don't report these)
- Falling animations are broken when gravity is not straight up or down.
- Macho animation is broken in upside-down gravity when you fall (there's a config for this).
- Platforms always go down in sudden death (intended)
- Water is still at the bottom (intended)
Important bugs (please report if found)
- Anything not being effected by custom gravity settings
- Crashes or Freezes
Documentation (if you want to use as a library)
- The entire mod is contained in the class OmniGravityPlugin
- The default gravity direction is Vector2 OmniGravityPlugin.default_grav
BoplBody
- Vector2 grav_dir : direction of gravity (should be normalized)
- bool grav_enabled : whether a BoplBody is affected by gravity
- float grav_scale : a factor of the strength of gravity
PlayerBody
- Vector2 grav_dir : direction of gravity (should be normalized)
speedContainer
- Vector2 grav_dir : used for the falling animations (broken)