Click or drag to resize

PhysicsServerBodyCreate Method

Creates a physics body. The first parameter can be any value from PhysicsServerBodyMode constants, for the type of body created. Additionally, the body can be created in sleeping state to save processing time.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static RID BodyCreate(
	PhysicsServerBodyMode mode = PhysicsServerBodyMode.Rigid,
	bool initSleeping = false
)

Parameters

mode (Optional)
Type: GodotPhysicsServerBodyMode

[Missing <param name="mode"/> documentation for "M:Godot.PhysicsServer.BodyCreate(Godot.PhysicsServer.BodyMode,System.Boolean)"]

initSleeping (Optional)
Type: SystemBoolean

[Missing <param name="initSleeping"/> documentation for "M:Godot.PhysicsServer.BodyCreate(Godot.PhysicsServer.BodyMode,System.Boolean)"]

Return Value

Type: RID

[Missing <returns> documentation for "M:Godot.PhysicsServer.BodyCreate(Godot.PhysicsServer.BodyMode,System.Boolean)"]

See Also