Gravity

Category: Listener Tier: Basic

Purpose

Detects the current gravity state of the object, enabling logic to react to changes in gravity such as zero-G animations, wall-walking controls, or gravity well effects.

Visual Reference

As added to your scene
Gravity brick as it appears in the GDLink editor

When To Use

  1. Zero-G Animation:

    • Listener: Gravity (Mode: Value, Property: Strength, Compare: Equal, Value: 0).

    • Gate: AND.

    • Executor: Animation (Float).

  2. Wall Walking Camera:

    • Listener: Gravity (Mode: Value, Property: Direction Y, Compare: Greater, Value: 0.1) -> means Gravity is UP.

    • Executor: Camera (Rotate 180).

Generated UI Mockup — showing expanded properties
Gravity
-
x
Name:
Label this brick...
Mode:
State
Property:
Active
Test:
Equal
Value:
0.0
v
Target Mode
Directional
Verbose
Invert

Properties

Property

Type

Default

Notes

Mode

option

State

State: Check gravity status. Value: Check gravity numbers.

Property

option

Active

What to check

Target Mode

option

Directional

Gravity mode to match

Test

option

Equal

[Value Mode] Comparison

Value

float

0.0

[Value Mode] Threshold value

Invert

bool

False

Trigger when the gravity condition is not met

Verbose

bool

False

Log gravity listener state via ladybug