Click or drag to resize

Physics2DServerAreaAddShape Method

Adds a shape to the area, along with a transform matrix. Shapes are usually referenced by their index, so you should track which shape has a given index.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void AreaAddShape(
	RID area,
	RID shape,
	Transform2D? transform = null,
	bool disabled = false
)

Parameters

area
Type: GodotRID

[Missing <param name="area"/> documentation for "M:Godot.Physics2DServer.AreaAddShape(Godot.RID,Godot.RID,System.Nullable{Godot.Transform2D},System.Boolean)"]

shape
Type: GodotRID

[Missing <param name="shape"/> documentation for "M:Godot.Physics2DServer.AreaAddShape(Godot.RID,Godot.RID,System.Nullable{Godot.Transform2D},System.Boolean)"]

transform (Optional)
Type: SystemNullableTransform2D
If the parameter is null, then the default value is Transform2D.Identity
disabled (Optional)
Type: SystemBoolean

[Missing <param name="disabled"/> documentation for "M:Godot.Physics2DServer.AreaAddShape(Godot.RID,Godot.RID,System.Nullable{Godot.Transform2D},System.Boolean)"]

See Also