Click or drag to resize

PhysicsServerBodySetShape Method

Substitutes a given body shape by another. The old shape is selected by its index, the new one by its RID.

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

Parameters

body
Type: GodotRID

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

shapeIdx
Type: SystemInt32

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

shape
Type: GodotRID

[Missing <param name="shape"/> documentation for "M:Godot.PhysicsServer.BodySetShape(Godot.RID,System.Int32,Godot.RID)"]

See Also