Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Custom Gravity

An asset by RobertSandfield
The page banner background of a mountain and forest
Custom Gravity hero image

Quick Information

0 ratings
Custom Gravity icon image
RobertSandfield
Custom Gravity

Override and extend the standard physics gravity. Includes several new gravity shapes, and exposes the Gravity resource type so users can add new ones as needed.

Supported Engine Version
4.0
Version String
0.1
License Version
MIT
Support Level
community
Modified Date
7 hours ago
Git URL
Issue URL

Custom Gravity

Override and extend the standard physics gravity

Introduction

Custom gravity should be used in place of the standard Area3D gravity. It reimplements the gravity system such that new types and interactions can be easily added.

Getting Started

Custom gravity can be used in tandem with the native Godot gravity system. However, any interactions between custom and native gravity will always be addative. To override native gravity, you have two options:

  • Remove standard gravity from your project: Project > Physics > 3D > Default Gravity Vector = Vector3.ZERO
  • On any GravyArea3D with which you wish to override native gravity, turn on the Area3D gravity with space mode Replace all values set to 0.

Add a GravityArea3D node to your scene, give it a CollisionShape3D and set its Gravity Resource values however you wish. RigidBodies will now interact with the gravity area just as they would with standard Area3D gravity. For CharacterBody scripts you will need to query the GravityManager.get_gravity(body) method instead of calling the CharacterBody native get_gravity() method.

Licenses

Override and extend the standard physics gravity. Includes several new gravity shapes, and exposes the Gravity resource type so users can add new ones as needed.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Custom Gravity icon image
RobertSandfield
Custom Gravity

Override and extend the standard physics gravity. Includes several new gravity shapes, and exposes the Gravity resource type so users can add new ones as needed.

Supported Engine Version
4.0
Version String
0.1
License Version
MIT
Support Level
community
Modified Date
7 hours ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers