You are viewing a potentially older version of this package. View all versions.
Starbox614-OmniGravity-3.0.2 icon

OmniGravity

Allows gravity in any direction. (READ THE README)

Date uploaded a month ago
Version 3.0.2
Download link Starbox614-OmniGravity-3.0.2.zip
Downloads 917
Dependency string Starbox614-OmniGravity-3.0.2

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)

CHANGELOG

3.0.2

  • Fixed bug where gravity was always up for players.
  • Fixed bug where players weren't pushed onto the ground after closing and restarting a round.

3.0.1

  • Fixed bug where gravity direction didn't affect drill.
  • Fixed bug where gravity direction didn't affect falling beam.

3.0.0

  • Fixed bug where duplicated player clones would fly downwards really fast
  • Macho and shooting transforms (bow, grenade, guns) now inherit gravity direction from their parent player.
  • Duplicated objects now inherit gravity direction from the original object.
  • Cloned and revived players now inherit gravity direction from the original player.
  • Added config for macho transform animation flipping
  • Improved README

2.1.0

  • Bopl bodies now have reduced gravity in space levels.
  • Boulders are now affected by changed gravity.
  • Objects spawned by players (rope, grenade, arrow, etc) now inherit the gravity of their player (this has no effect when you only have this mod).

2.0.0

  • Fixed bug where physics objects gravity would apply during timestop.
  • Player now rotates to match the gravity.
  • Meteor now goes in the direction of gravity.
  • Tried to make player falling animation work with changed gravity but its broken.
  • Changed the way gravity direction is stored internally so it can be changed by other mods.

1.1.1

  • Fixed README

1.1.0:

  • Fixed some changelog issues
  • Gravity now works with ropes

1.0.0:

  • Added changelog
  • Gravity now affects drill and all BoplBodies with gravity (grenade, arrow, rock).
  • Players now get a burst of downwards velocity at the start of each round to prevent flying away in upsidown gravity.
  • Fixed harmony instance name being wrong

0.10.1:

  • Switched config to use separate x and y values instead of a confusing vector2.

0.10.0:

  • Mod released.
  • Gravity only affects untransformed players with no ropes attached.