Scripting API

Scripting API

RagdollJoint3D

Struct in Abyss.Physics3D, from Abyss.Physics3D.

A limb held to what it hangs from, as a shoulder or a knee is: the body this is on and RagdollJoint3D.ConnectedBody, or a point in the world where that is none, held at one point, its RagdollJoint3D.Axis swinging no further from where it was than a cone and twisting about itself within a range.

public struct RagdollJoint3D

Remarks

The cone is about RagdollJoint3D.Axis as it was made: the axis swings up to RagdollJoint3D.SwingAngle toward RagdollJoint3D.SwingAxis and away, and up to RagdollJoint3D.SwingAngleAcross square to that, an ellipse between; the limb twists about its axis from RagdollJoint3D.LowerTwist to RagdollJoint3D.UpperTwist, from the twist it was made at. All in degrees.

Anchors and breaking as FixedJoint3D's.

Fields

ConnectedBody

public EntityRef ConnectedBody

The other body: an entity with a Rigidbody 3D, or under one; none for a point in 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.

Axis

public Vector3 Axis

Along the limb, in its entity's own units: what it twists about, the middle of the cone it swings in.

SwingAxis

public Vector3 SwingAxis

Across the limb, in its entity's own units: the way it swings as far as RagdollJoint3D.SwingAngle.

SwingAngle

public float SwingAngle

How far its axis swings toward RagdollJoint3D.SwingAxis and away, in degrees.

SwingAngleAcross

public float SwingAngleAcross

How far its axis swings square to RagdollJoint3D.SwingAxis, either way, in degrees.

LowerTwist

public float LowerTwist

The least it twists about its axis, in degrees from the twist it was made at.

UpperTwist

public float UpperTwist

The most it twists about its axis, in degrees from the twist it was made at.

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.