Click or drag to resize

Physics2DServerPinJointCreate Method

Creates a pin joint between two bodies. If not specified, the second body is assumed to be the joint itself.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static RID PinJointCreate(
	Vector2 anchor,
	RID bodyA,
	RID bodyB = null
)

Parameters

anchor
Type: GodotVector2

[Missing <param name="anchor"/> documentation for "M:Godot.Physics2DServer.PinJointCreate(Godot.Vector2,Godot.RID,Godot.RID)"]

bodyA
Type: GodotRID

[Missing <param name="bodyA"/> documentation for "M:Godot.Physics2DServer.PinJointCreate(Godot.Vector2,Godot.RID,Godot.RID)"]

bodyB (Optional)
Type: GodotRID

[Missing <param name="bodyB"/> documentation for "M:Godot.Physics2DServer.PinJointCreate(Godot.Vector2,Godot.RID,Godot.RID)"]

Return Value

Type: RID

[Missing <returns> documentation for "M:Godot.Physics2DServer.PinJointCreate(Godot.Vector2,Godot.RID,Godot.RID)"]

See Also