Starbox614-OmniGravity icon

OmniGravity

Allows gravity in any direction. (READ THE README)

Last updated 2 months ago
Total downloads 2414
Total rating 0 
Categories Mods
Dependency string Starbox614-OmniGravity-3.0.2
Dependants 2 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100
www_Day_Dream-CessilCellsCeaChells-0.3.6 icon
www_Day_Dream-CessilCellsCeaChells

Allows installed plugins to request creation of Fields, Properties, Methods, and more in Managed DLLs.

Preferred version: 0.3.6

README

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)