Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

PhysicsDirectBodyState3DExtension

Inherits: PhysicsDirectBodyState3D < Object

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

Description

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

Methods

void

_add_constant_central_force ( Vector3 force ) virtual

void

_add_constant_force ( Vector3 force, Vector3 position ) virtual

void

_add_constant_torque ( Vector3 torque ) virtual

void

_apply_central_force ( Vector3 force ) virtual

void

_apply_central_impulse ( Vector3 impulse ) virtual

void

_apply_force ( Vector3 force, Vector3 position ) virtual

void

_apply_impulse ( Vector3 impulse, Vector3 position ) virtual

void

_apply_torque ( Vector3 torque ) virtual

void

_apply_torque_impulse ( Vector3 impulse )