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 FixedJoint2DRemarks
Anchors and breaking as HingeJoint2D's.
Fields
ConnectedBody
public EntityRef ConnectedBodyThe other body: an entity with a Rigidbody 2D, or under one; none for the world.
EnableCollision
public bool EnableCollisionWhether the two bodies still meet each other.
AutoConfigureConnectedAnchor
public bool AutoConfigureConnectedAnchorWhether the connected anchor is made where the anchor is as the joint is made.
Anchor
public Vector2 AnchorWhere it holds this body, in its entity's own units.
ConnectedAnchor
public Vector2 ConnectedAnchorWhere it holds the other, in its entity's own units, or in the world's where there is none.
DampingRatio
public float DampingRatioHow its give is slowed: 0 not at all, 1 at once.
Frequency
public float FrequencyHow stiffly it holds, in times a second it gives; 0 as stiff as there is.
BreakForce
public float BreakForceThe force it breaks at, in newtons; infinity never.
BreakTorque
public float BreakTorqueThe torque it breaks at, in newton meters; infinity never.
