Skip to content

JointComponent.RebuildAfterBreak Property

Definition

Namespace: Brine2D.ECS.Components.Joints

When true, a broken joint will be rebuilt automatically on the next physics step \(if [ConnectedBody](ConnectedBody.md 'Brine2D\.ECS\.Components\.Joints\.JointComponent\.ConnectedBody') is still valid\). Default is false — the break is permanent unless the caller explicitly sets ConnectedBody again or sets this flag.

To permanently break a joint at runtime, set ConnectedBody = null inside your OnBreak handler regardless of this flag.

C#
public bool RebuildAfterBreak { get; set; }

Property Value

System.Boolean