Scripting API

Scripting API

FixedJoint2D

Struct in Abyss.Physics2D, from Abyss.Physics2D.

Two bodies held together as they were as it was made, as if welded: the body this is on and FixedJoint2D.ConnectedBody, or the world where that is none; stiff, or with a FixedJoint2D.Frequency giving like a spring.

public struct FixedJoint2D

Remarks

Anchors and breaking as HingeJoint2D's.

Fields

ConnectedBody

public EntityRef ConnectedBody

The other body: an entity with a Rigidbody 2D, or under one; none for the world.

EnableCollision

public bool EnableCollision

Whether the two bodies still meet each other.

AutoConfigureConnectedAnchor

public bool AutoConfigureConnectedAnchor

Whether the connected anchor is made where the anchor is as the joint is made.

Anchor

public Vector2 Anchor

Where it holds this body, in its entity's own units.

ConnectedAnchor

public Vector2 ConnectedAnchor

Where it holds the other, in its entity's own units, or in the world's where there is none.

DampingRatio

public float DampingRatio

How its give is slowed: 0 not at all, 1 at once.

Frequency

public float Frequency

How stiffly it holds, in times a second it gives; 0 as stiff as there is.

BreakForce

public float BreakForce

The force it breaks at, in newtons; infinity never.

BreakTorque

public float BreakTorque

The torque it breaks at, in newton meters; infinity never.