Click or drag to resize

Physics2DServerBodySetContinuousCollisionDetectionMode Method

Sets the continuous collision detection mode using one of the Physics2DServerCCDMode constants.

Continuous collision detection tries to predict where a moving body will collide, instead of moving it and correcting its movement if it collided.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void BodySetContinuousCollisionDetectionMode(
	RID body,
	Physics2DServerCCDMode mode
)

Parameters

body
Type: GodotRID

[Missing <param name="body"/> documentation for "M:Godot.Physics2DServer.BodySetContinuousCollisionDetectionMode(Godot.RID,Godot.Physics2DServer.CCDMode)"]

mode
Type: GodotPhysics2DServerCCDMode

[Missing <param name="mode"/> documentation for "M:Godot.Physics2DServer.BodySetContinuousCollisionDetectionMode(Godot.RID,Godot.Physics2DServer.CCDMode)"]

See Also