Click or drag to resize

Physics2DServerBodySetShapeAsOneWayCollision Method

Enables one way collision on body if enable is true.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void BodySetShapeAsOneWayCollision(
	RID body,
	int shapeIdx,
	bool enable,
	float margin
)

Parameters

body
Type: GodotRID

[Missing <param name="body"/> documentation for "M:Godot.Physics2DServer.BodySetShapeAsOneWayCollision(Godot.RID,System.Int32,System.Boolean,System.Single)"]

shapeIdx
Type: SystemInt32

[Missing <param name="shapeIdx"/> documentation for "M:Godot.Physics2DServer.BodySetShapeAsOneWayCollision(Godot.RID,System.Int32,System.Boolean,System.Single)"]

enable
Type: SystemBoolean

[Missing <param name="enable"/> documentation for "M:Godot.Physics2DServer.BodySetShapeAsOneWayCollision(Godot.RID,System.Int32,System.Boolean,System.Single)"]

margin
Type: SystemSingle

[Missing <param name="margin"/> documentation for "M:Godot.Physics2DServer.BodySetShapeAsOneWayCollision(Godot.RID,System.Int32,System.Boolean,System.Single)"]

See Also