Scripting API

Scripting API

JointBroken3D

Record struct in Abyss.Physics3D, from Abyss.Physics3D.

A joint that broke, held harder than its Break Force or Break Torque in a step, and taken off its entity: see Physics3D.JointsBroken.

public readonly record struct JointBroken3D

Constructors

JointBroken3D

public JointBroken3D(ulong Entity, Joint3DKind Joint, ulong ConnectedBody, float Force, float Torque)

A joint that broke, held harder than its Break Force or Break Torque in a step, and taken off its entity: see Physics3D.JointsBroken.

Parameters

  • Entity: The entity the joint was on.
  • Joint: Which joint it was.
  • ConnectedBody: The other body it held, or 0 where it held the world.
  • Force: The force it held with as it broke, in newtons.
  • Torque: The torque it held with as it broke, in newton meters.

Properties

Entity

public ulong Entity { get; init; }

The entity the joint was on.

Joint

public Joint3DKind Joint { get; init; }

Which joint it was.

ConnectedBody

public ulong ConnectedBody { get; init; }

The other body it held, or 0 where it held the world.

Force

public float Force { get; init; }

The force it held with as it broke, in newtons.

Torque

public float Torque { get; init; }

The torque it held with as it broke, in newton meters.