Click or drag to resize

Physics2DServerBodySetCollisionMask Method

Sets the physics layer or layers a body can collide with.

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

Parameters

body
Type: GodotRID

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

mask
Type: SystemUInt32

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

See Also