mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Fix force integration documentation
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<return type="void" />
|
||||
<param index="0" name="state" type="PhysicsDirectBodyState3D" />
|
||||
<description>
|
||||
Called during physics processing, allowing you to read and safely modify the simulation state for the object. By default, it works in addition to the usual physics behavior, but the [member custom_integrator] property allows you to disable the default behavior and do fully custom force integration for a body.
|
||||
Called during physics processing, allowing you to read and safely modify the simulation state for the object. By default, it is called before the standard force integration, but the [member custom_integrator] property allows you to disable the standard force integration and do fully custom force integration for a body.
|
||||
</description>
|
||||
</method>
|
||||
<method name="add_constant_central_force">
|
||||
@@ -166,7 +166,8 @@
|
||||
Continuous collision detection tries to predict where a moving body will collide, instead of moving it and correcting its movement if it collided. Continuous collision detection is more precise, and misses fewer impacts by small, fast-moving objects. Not using continuous collision detection is faster to compute, but can miss small, fast-moving objects.
|
||||
</member>
|
||||
<member name="custom_integrator" type="bool" setter="set_use_custom_integrator" getter="is_using_custom_integrator" default="false">
|
||||
If [code]true[/code], internal force integration will be disabled (like gravity or air friction) for this body. Other than collision response, the body will only move as determined by the [method _integrate_forces] function, if defined.
|
||||
If [code]true[/code], the standard force integration (like gravity or damping) will be disabled for this body. Other than collision response, the body will only move as determined by the [method _integrate_forces] method, if that virtual method is overridden.
|
||||
Setting this property will call the method [method PhysicsServer3D.body_set_omit_force_integration] internally.
|
||||
</member>
|
||||
<member name="freeze" type="bool" setter="set_freeze_enabled" getter="is_freeze_enabled" default="false">
|
||||
If [code]true[/code], the body is frozen. Gravity and forces are not applied anymore.
|
||||
|
||||
Reference in New Issue
Block a user