Scripting API

Scripting API

FixedJoint3D

Struct in Abyss.Physics3D, from Abyss.Physics3D.

Two bodies held together as they were as it was made, as if welded: the body this is on — the nearest Rigidbody 3D at or above its entity — and FixedJoint3D.ConnectedBody, or the world where that is none.

public struct FixedJoint3D

Remarks

Where the two are held is FixedJoint3D.Anchor on this body, in its entity's own units, and FixedJoint3D.ConnectedAnchor on the other, in that entity's, or in the world's where there is none; with FixedJoint3D.AutoConfigureConnectedAnchor the joint is made with the connected anchor where the anchor is, and says where that was.

It breaks — taken off its entity, and said in Physics3D.JointsBroken — when it holds harder than FixedJoint3D.BreakForce or FixedJoint3D.BreakTorque.

Fields

ConnectedBody

public EntityRef ConnectedBody

The other body: an entity with a Rigidbody 3D, 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 Vector3 Anchor

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

ConnectedAnchor

public Vector3 ConnectedAnchor

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

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.