Click or drag to resize

Physics2DServerBodySetState Method

Sets a body state using one of the Physics2DServerBodyState constants.

Note that the method doesn't take effect immediately. The state will change on the next physics frame.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void BodySetState(
	RID body,
	Physics2DServerBodyState state,
	Object value
)

Parameters

body
Type: GodotRID

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

state
Type: GodotPhysics2DServerBodyState

[Missing <param name="state"/> documentation for "M:Godot.Physics2DServer.BodySetState(Godot.RID,Godot.Physics2DServer.BodyState,System.Object)"]

value
Type: SystemObject

[Missing <param name="value"/> documentation for "M:Godot.Physics2DServer.BodySetState(Godot.RID,Godot.Physics2DServer.BodyState,System.Object)"]

See Also