Click or drag to resize

Physics2DServerBodySetShapeMetadata Method

Sets metadata of a shape within a body. This metadata is different from SetMeta(String, Object), and can be retrieved on shape queries.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void BodySetShapeMetadata(
	RID body,
	int shapeIdx,
	Object metadata
)

Parameters

body
Type: GodotRID

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

shapeIdx
Type: SystemInt32

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

metadata
Type: SystemObject

[Missing <param name="metadata"/> documentation for "M:Godot.Physics2DServer.BodySetShapeMetadata(Godot.RID,System.Int32,System.Object)"]

See Also