.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the PhysicsDirectBodyState.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_PhysicsDirectBodyState: PhysicsDirectBodyState ====================== **Inherits:** :ref:`Object` **Inherited By:** :ref:`BulletPhysicsDirectBodyState` **Category:** Core Brief Description ----------------- Member Functions ---------------- +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_force` **(** :ref:`Vector3` force, :ref:`Vector3` position **)** | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`apply_impulse` **(** :ref:`Vector3` position, :ref:`Vector3` j **)** | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`apply_torqe_impulse` **(** :ref:`Vector3` j **)** | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`apply_torque_impulse` **(** :ref:`Vector3` j **)** | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`get_contact_collider` **(** :ref:`int` contact_idx **)** const | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_contact_collider_id` **(** :ref:`int` contact_idx **)** const | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Object` | :ref:`get_contact_collider_object` **(** :ref:`int` contact_idx **)** const | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`get_contact_collider_position` **(** :ref:`int` contact_idx **)** const | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_contact_collider_shape` **(** :ref:`int` contact_idx **)** const | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`get_contact_collider_velocity_at_position` **(** :ref:`int` contact_idx **)** const | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_contact_count` **(** **)** const | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`get_contact_local_normal` **(** :ref:`int` contact_idx **)** const | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`get_contact_local_position` **(** :ref:`int` contact_idx **)** const | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_contact_local_shape` **(** :ref:`int` contact_idx **)** const | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PhysicsDirectSpaceState` | :ref:`get_space_state` **(** **)** | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`integrate_forces` **(** **)** | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- .. _class_PhysicsDirectBodyState_angular_velocity: - :ref:`Vector3` **angular_velocity** - The angular velocity of the body. .. _class_PhysicsDirectBodyState_center_of_mass: - :ref:`Vector3` **center_of_mass** .. _class_PhysicsDirectBodyState_inverse_inertia: - :ref:`Vector3` **inverse_inertia** - The inverse of the inertia of the body. .. _class_PhysicsDirectBodyState_inverse_mass: - :ref:`float` **inverse_mass** - The inverse of the mass of the body. .. _class_PhysicsDirectBodyState_linear_velocity: - :ref:`Vector3` **linear_velocity** - The linear velocity of the body. .. _class_PhysicsDirectBodyState_principal_inertia_axes: - :ref:`Basis` **principal_inertia_axes** .. _class_PhysicsDirectBodyState_sleeping: - :ref:`bool` **sleeping** - ``true`` if this body is currently sleeping (not active). .. _class_PhysicsDirectBodyState_step: - :ref:`float` **step** - The timestep (delta) used for the simulation. .. _class_PhysicsDirectBodyState_total_angular_damp: - :ref:`float` **total_angular_damp** - The rate at which the body stops rotating, if there are not any other forces moving it. .. _class_PhysicsDirectBodyState_total_gravity: - :ref:`Vector3` **total_gravity** - The total gravity vector being currently applied to this body. .. _class_PhysicsDirectBodyState_total_linear_damp: - :ref:`float` **total_linear_damp** - The rate at which the body stops moving, if there are not any other forces moving it. .. _class_PhysicsDirectBodyState_transform: - :ref:`Transform` **transform** - The transformation matrix of the body. Member Function Description --------------------------- .. _class_PhysicsDirectBodyState_add_force: - void **add_force** **(** :ref:`Vector3` force, :ref:`Vector3` position **)** .. _class_PhysicsDirectBodyState_apply_impulse: - void **apply_impulse** **(** :ref:`Vector3` position, :ref:`Vector3` j **)** .. _class_PhysicsDirectBodyState_apply_torqe_impulse: - void **apply_torqe_impulse** **(** :ref:`Vector3` j **)** This method is deprecated. Please use :ref:`apply_torque_impulse` instead. .. _class_PhysicsDirectBodyState_apply_torque_impulse: - void **apply_torque_impulse** **(** :ref:`Vector3` j **)** .. _class_PhysicsDirectBodyState_get_contact_collider: - :ref:`RID` **get_contact_collider** **(** :ref:`int` contact_idx **)** const .. _class_PhysicsDirectBodyState_get_contact_collider_id: - :ref:`int` **get_contact_collider_id** **(** :ref:`int` contact_idx **)** const .. _class_PhysicsDirectBodyState_get_contact_collider_object: - :ref:`Object` **get_contact_collider_object** **(** :ref:`int` contact_idx **)** const .. _class_PhysicsDirectBodyState_get_contact_collider_position: - :ref:`Vector3` **get_contact_collider_position** **(** :ref:`int` contact_idx **)** const .. _class_PhysicsDirectBodyState_get_contact_collider_shape: - :ref:`int` **get_contact_collider_shape** **(** :ref:`int` contact_idx **)** const .. _class_PhysicsDirectBodyState_get_contact_collider_velocity_at_position: - :ref:`Vector3` **get_contact_collider_velocity_at_position** **(** :ref:`int` contact_idx **)** const .. _class_PhysicsDirectBodyState_get_contact_count: - :ref:`int` **get_contact_count** **(** **)** const .. _class_PhysicsDirectBodyState_get_contact_local_normal: - :ref:`Vector3` **get_contact_local_normal** **(** :ref:`int` contact_idx **)** const .. _class_PhysicsDirectBodyState_get_contact_local_position: - :ref:`Vector3` **get_contact_local_position** **(** :ref:`int` contact_idx **)** const .. _class_PhysicsDirectBodyState_get_contact_local_shape: - :ref:`int` **get_contact_local_shape** **(** :ref:`int` contact_idx **)** const .. _class_PhysicsDirectBodyState_get_space_state: - :ref:`PhysicsDirectSpaceState` **get_space_state** **(** **)** .. _class_PhysicsDirectBodyState_integrate_forces: - void **integrate_forces** **(** **)**