Class reference

PhysicsDirectBodyState2DExtension

Inherits PhysicsDirectBodyState2D

Provides virtual methods that can be overridden to create custom PhysicsDirectBodyState2D implementations.

Description

This class extends PhysicsDirectBodyState2D by providing additional virtual methods that can be overridden. When these methods are overridden, they will be called instead of the internal methods of the physics server. Intended for use with GDExtension to create custom implementations of PhysicsDirectBodyState2D.

Methods

int _get_collision_layer() virtual required const

int _get_collision_mask() virtual required const

void _set_collision_layer(int layer) virtual required

void _set_collision_mask(int mask) virtual required

Source revision 4f5b14abade2
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.