Scripting API
Scripting API
JointBroken2D
Record struct in Abyss.Physics2D, from Abyss.Physics2D.
A joint that broke, held harder than its Break Force or Break Torque in a step, and taken off its entity: see Physics2D.JointsBroken.
public readonly record struct JointBroken2DConstructors
JointBroken2D
public JointBroken2D(ulong Entity, Joint2DKind 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 Physics2D.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 a point in 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 Joint2DKind Joint { get; init; }Which joint it was.
ConnectedBody
public ulong ConnectedBody { get; init; }The other body it held, or 0 where it held a point in 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.
