Skip to content

SubShape.EnableHitEvents Property

Definition

Namespace: Brine2D.ECS.Components

Whether hit events \([OnCollisionHit](../PhysicsBodyComponent/OnCollisionHit.md 'Brine2D\.ECS\.Components\.PhysicsBodyComponent\.OnCollisionHit')\) are enabled for this sub-shape. When null, inherits EnableHitEvents from the owning body. Changes on a live body apply immediately.

C#
public System.Nullable<bool> EnableHitEvents { get; set; }

Property Value

System.Nullable<System.Boolean>