Click or drag to resize

RigidBody2D_IntegrateForces Method

Allows you to read and safely modify the simulation state for the object. Use this instead of _PhysicsProcess(Single) if you need to directly change the body's position or other physics properties. By default, it works in addition to the usual physics behavior, but CustomIntegrator allows you to disable the default behavior and write custom force integration for a body.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public virtual void _IntegrateForces(
	Physics2DDirectBodyState state
)

Parameters

state
Type: GodotPhysics2DDirectBodyState

[Missing <param name="state"/> documentation for "M:Godot.RigidBody2D._IntegrateForces(Godot.Physics2DDirectBodyState)"]

See Also