Click or drag to resize

Physics2DServerBodySetCollisionLayer Method

Sets the physics layer or layers a body belongs to.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void BodySetCollisionLayer(
	RID body,
	uint layer
)

Parameters

body
Type: GodotRID

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

layer
Type: SystemUInt32

[Missing <param name="layer"/> documentation for "M:Godot.Physics2DServer.BodySetCollisionLayer(Godot.RID,System.UInt32)"]

See Also