mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00:00
classref: Sync with current master branch (96cdbbe)
This commit is contained in:
@@ -21,7 +21,7 @@ Provides direct access to a physics body in the :ref:`PhysicsServer3D<class_Phys
|
||||
Description
|
||||
-----------
|
||||
|
||||
Provides direct access to a physics body in the :ref:`PhysicsServer3D<class_PhysicsServer3D>`, allowing safe changes to physics properties. This object is passed via the direct state callback of :ref:`RigidBody3D<class_RigidBody3D>`, and is intended for changing the direct state of that body. See :ref:`RigidBody3D._integrate_forces<class_RigidBody3D_private_method__integrate_forces>`.
|
||||
Provides direct access to a physics body in the :ref:`PhysicsServer3D<class_PhysicsServer3D>`, allowing safe changes to physics properties. This object is passed via the direct state callback of :ref:`RigidBody3D<class_RigidBody3D>`, and is intended for changing the direct state of that body. See :ref:`RigidBody3D._integrate_forces()<class_RigidBody3D_private_method__integrate_forces>`.
|
||||
|
||||
.. rst-class:: classref-introduction-group
|
||||
|
||||
@@ -388,7 +388,7 @@ Method Descriptions
|
||||
|
||||
Adds a constant directional force without affecting rotation that keeps being applied over time until cleared with ``constant_force = Vector3(0, 0, 0)``.
|
||||
|
||||
This is equivalent to using :ref:`add_constant_force<class_PhysicsDirectBodyState3D_method_add_constant_force>` at the body's center of mass.
|
||||
This is equivalent to using :ref:`add_constant_force()<class_PhysicsDirectBodyState3D_method_add_constant_force>` at the body's center of mass.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -428,7 +428,7 @@ Adds a constant rotational force without affecting position that keeps being app
|
||||
|
||||
Applies a directional force without affecting rotation. A force is time dependent and meant to be applied every physics update.
|
||||
|
||||
This is equivalent to using :ref:`apply_force<class_PhysicsDirectBodyState3D_method_apply_force>` at the body's center of mass.
|
||||
This is equivalent to using :ref:`apply_force()<class_PhysicsDirectBodyState3D_method_apply_force>` at the body's center of mass.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -444,7 +444,7 @@ Applies a directional impulse without affecting rotation.
|
||||
|
||||
An impulse is time-independent! Applying an impulse every frame would result in a framerate-dependent force. For this reason, it should only be used when simulating one-time impacts (use the "_force" functions otherwise).
|
||||
|
||||
This is equivalent to using :ref:`apply_impulse<class_PhysicsDirectBodyState3D_method_apply_impulse>` at the body's center of mass.
|
||||
This is equivalent to using :ref:`apply_impulse()<class_PhysicsDirectBodyState3D_method_apply_impulse>` at the body's center of mass.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -518,7 +518,7 @@ An impulse is time-independent! Applying an impulse every frame would result in
|
||||
|
||||
Returns the body's total constant positional forces applied during each physics update.
|
||||
|
||||
See :ref:`add_constant_force<class_PhysicsDirectBodyState3D_method_add_constant_force>` and :ref:`add_constant_central_force<class_PhysicsDirectBodyState3D_method_add_constant_central_force>`.
|
||||
See :ref:`add_constant_force()<class_PhysicsDirectBodyState3D_method_add_constant_force>` and :ref:`add_constant_central_force()<class_PhysicsDirectBodyState3D_method_add_constant_central_force>`.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -532,7 +532,7 @@ See :ref:`add_constant_force<class_PhysicsDirectBodyState3D_method_add_constant_
|
||||
|
||||
Returns the body's total constant rotational forces applied during each physics update.
|
||||
|
||||
See :ref:`add_constant_torque<class_PhysicsDirectBodyState3D_method_add_constant_torque>`.
|
||||
See :ref:`add_constant_torque()<class_PhysicsDirectBodyState3D_method_add_constant_torque>`.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -728,7 +728,7 @@ Updates the body's linear and angular velocity by applying gravity and damping f
|
||||
|
||||
Sets the body's total constant positional forces applied during each physics update.
|
||||
|
||||
See :ref:`add_constant_force<class_PhysicsDirectBodyState3D_method_add_constant_force>` and :ref:`add_constant_central_force<class_PhysicsDirectBodyState3D_method_add_constant_central_force>`.
|
||||
See :ref:`add_constant_force()<class_PhysicsDirectBodyState3D_method_add_constant_force>` and :ref:`add_constant_central_force()<class_PhysicsDirectBodyState3D_method_add_constant_central_force>`.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -742,7 +742,7 @@ See :ref:`add_constant_force<class_PhysicsDirectBodyState3D_method_add_constant_
|
||||
|
||||
Sets the body's total constant rotational forces applied during each physics update.
|
||||
|
||||
See :ref:`add_constant_torque<class_PhysicsDirectBodyState3D_method_add_constant_torque>`.
|
||||
See :ref:`add_constant_torque()<class_PhysicsDirectBodyState3D_method_add_constant_torque>`.
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
|
||||
.. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
|
||||
|
||||
Reference in New Issue
Block a user