PhysicsServer2DExtension

Inherits: PhysicsServer2D < Object

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

Description

This class extends PhysicsServer2D 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 PhysicsServer2D.

Methods

void

_area_add_shape ( RID area, RID shape, Transform2D transform, bool disabled ) virtual

void

_area_attach_canvas_instance_id ( RID area, int id ) virtual

void

_area_attach_object_instance_id ( RID area, int id ) virtual

void

_area_clear_shapes ( RID area ) virtual

RID

_area_create ( ) virtual

int

_area_get_canvas_instance_id ( RID area ) virtual const

int

_area_get_collision_layer ( RID area ) virtual const

int

_area_get_collision_mask ( RID area ) virtual const

int

_area_get_object_instance_id ( RID area ) virtual const

Variant

_area_get_param ( RID area, AreaParameter param ) virtual const

RID

_area_get_shape ( RID area, int shape_idx ) virtual const

int

_area_get_shape_count ( RID area ) virtual const

Transform2D

_area_get_shape_transform ( RID area, int shape_idx ) virtual const

RID

_area_get_space ( RID area ) virtual const

Transform2D

_area_get_transform ( RID area ) virtual const

void

_area_remove_shape ( RID area, int shape_idx ) virtual

void

_area_set_area_monitor_callback ( RID area, Callable callback ) virtual

void

_area_set_collision_layer ( RID area, int layer ) virtual

void

_area_set_collision_mask ( RID area, int mask ) virtual

void

_area_set_monitor_callback ( RID area, Callable callback ) virtual

void

_area_set_monitorable ( RID area, bool monitorable ) virtual

void

_area_set_param ( RID area, AreaParameter param, Variant value ) virtual

void

_area_set_pickable ( RID area, bool pickable )