Skip to content

ShapeCastHit.Component Property

Definition

Namespace: Brine2D.Physics

The PhysicsBodyComponent that was hit, or null if the body has no associated component \(e\.g\. the physics system has not yet initialized\).

C#
public Brine2D.ECS.Components.PhysicsBodyComponent? Component { get; init; }

Property Value

PhysicsBodyComponent