Skip to content

ChainShape.SegmentMaterials Property

Definition

Namespace: Brine2D.Physics

Per-segment surface materials. When non-null, length must equal the segment count: Points.Length - 1 for open chains, Points.Length for loops. When null, every segment inherits SurfaceFriction and Restitution from the owning body.

public (float Friction,float Restitution)[]? SegmentMaterials { get; init; }

Property Value

<System.Single,System.Single>[]