Index · Object → PhysicsDirectBodyState3D → PhysicsDirectBodyState3DExtension

PhysicsDirectBodyState3DExtension

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

Class 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.

Properties

Inherited from PhysicsDirectBodyState3D (16)
var step: float

Methods

func _add_constant_central_force(force: Vector3) -> void
func _add_constant_force(force: Vector3, position: Vector3) -> void
func _add_constant_torque(torque: Vector3) -> void
func _apply_central_force(force: Vector3) -> void
func _apply_central_impulse(impulse: Vector3) -> void
func _apply_force(force: Vector3, position: Vector3) -> void
func _apply_impulse(impulse: Vector3, position: Vector3) -> void
func _apply_torque(torque: Vector3) -> void
func _apply_torque_impulse(impulse: Vector3) -> void
func _get_angular_velocity() -> Vector3
func _get_center_of_mass() -> Vector3
func _get_center_of_mass_local() -> Vector3
func _get_collision_layer() -> int
func _get_collision_mask() -> int
func _get_constant_force() -> Vector3
func _get_constant_torque() -> Vector3
func _get_contact_collider(contact_idx: int) -> RID
func _get_contact_collider_id(contact_idx: int) -> int
func _get_contact_collider_object(contact_idx: int) -> Object
func _get_contact_collider_position(contact_idx: int) -> Vector3
func _get_contact_collider_shape(contact_idx: int) -> int
func _get_contact_collider_velocity_at_position(contact_idx: int) -> Vector3
func _get_contact_count() -> int
func _get_contact_impulse(contact_idx: int) -> Vector3
func _get_contact_local_normal(contact_idx: int) -> Vector3
func _get_contact_local_position(contact_idx: int) -> Vector3
func _get_contact_local_shape(contact_idx: int) -> int
func _get_contact_local_velocity_at_position(contact_idx: int) -> Vector3
func _get_inverse_inertia() -> Vector3
func _get_inverse_inertia_tensor() -> Basis
func _get_inverse_mass() -> float
func _get_linear_velocity() -> Vector3
func _get_principal_inertia_axes() -> Basis
func _get_space_state() -> PhysicsDirectSpaceState3D
func _get_step() -> float
func _get_total_angular_damp() -> float
func _get_total_gravity() -> Vector3
func _get_total_linear_damp() -> float
func _get_transform() -> Transform3D
func _get_velocity_at_local_position(local_position: Vector3) -> Vector3
func _integrate_forces() -> void
func _is_sleeping() -> bool
func _set_angular_velocity(velocity: Vector3) -> void
func _set_collision_layer(layer: int) -> void
func _set_collision_mask(mask: int) -> void
func _set_constant_force(force: Vector3) -> void
func _set_constant_torque(torque: Vector3) -> void
func _set_linear_velocity(velocity: Vector3) -> void
func _set_sleep_state(enabled: bool) -> void
func _set_transform(transform: Transform3D) -> void
Inherited from PhysicsDirectBodyState3D (28)
func add_constant_central_force(force: Vector3 = Vector3(0, 0, 0)) -> void
func add_constant_force(force: Vector3, position: Vector3 = Vector3(0, 0, 0)) -> void
func add_constant_torque(torque: Vector3) -> void
func apply_central_force(force: Vector3 = Vector3(0, 0, 0)) -> void
func apply_central_impulse(impulse: Vector3 = Vector3(0, 0, 0)) -> void
func apply_force(force: Vector3, position: Vector3 = Vector3(0, 0, 0)) -> void
func apply_impulse(impulse: Vector3, position: Vector3 = Vector3(0, 0, 0)) -> void
func apply_torque(torque: Vector3) -> void
func apply_torque_impulse(impulse: Vector3) -> void
func get_contact_collider(contact_idx: int) -> RID
func get_contact_collider_id(contact_idx: int) -> int
func get_contact_collider_object(contact_idx: int) -> Object
func get_contact_collider_shape(contact_idx: int) -> int
func get_contact_impulse(contact_idx: int) -> Vector3
func get_contact_local_normal(contact_idx: int) -> Vector3
func get_contact_local_position(contact_idx: int) -> Vector3
func get_contact_local_shape(contact_idx: int) -> int
func integrate_forces() -> void
func set_constant_force(force: Vector3) -> void
func set_constant_torque(torque: Vector3) -> void
Inherited from Object (62)
func _get(property: StringName) -> Variant
func _get_property_list() -> Dictionary[]
func _init() -> void
func _iter_get(iter: Variant) -> Variant
func _iter_init(iter: Array) -> bool
func _iter_next(iter: Array) -> bool
func _notification(what: int) -> void
func _set(property: StringName, value: Variant) -> bool
func _to_string() -> String
func _validate_property(property: Dictionary) -> void
func add_user_signal(signal: String, arguments: Array = []) -> void
func call(method: StringName) -> Variant
func callv(method: StringName, arg_array: Array) -> Variant
func cancel_free() -> void
func connect(signal: StringName, callable: Callable, flags: int = 0) -> Error
func disconnect(signal: StringName, callable: Callable) -> void
func emit_signal(signal: StringName) -> Error
func free() -> void
func get(property: StringName) -> Variant
func get_class() -> String
func get_incoming_connections() -> Dictionary[]
func get_indexed(property_path: NodePath) -> Variant
func get_meta(name: StringName, default: Variant = null) -> Variant
func get_meta_list() -> StringName[]
func get_method_list() -> Dictionary[]
func get_property_list() -> Dictionary[]
func get_signal_connection_list(signal: StringName) -> Dictionary[]
func get_signal_list() -> Dictionary[]
func has_meta(name: StringName) -> bool
func has_method(method: StringName) -> bool
func has_signal(signal: StringName) -> bool
func is_class(class: StringName) -> bool
func is_connected(signal: StringName, callable: Callable) -> bool
func notification(what: int, reversed: bool = false) -> void
func remove_meta(name: StringName) -> void
func remove_user_signal(signal: StringName) -> void
func set(property: StringName, value: Variant) -> void
func set_block_signals(enable: bool) -> void
func set_deferred(property: StringName, value: Variant) -> void
func set_indexed(property_path: NodePath, value: Variant) -> void
func set_message_translation(enable: bool) -> void
func set_meta(name: StringName, value: Variant) -> void
func set_script(script: Variant) -> void
func set_translation_domain(domain: StringName) -> void
func to_string() -> String
func tr(message: StringName, context: StringName = &"") -> String
func tr_n(message: StringName, plural_message: StringName, n: int, context: StringName = &"") -> String

Signals

Inherited from Object (2)