Skip to content

PhysicsWorld.SetContactHitEventThreshold(float) Method

Definition

Namespace: Brine2D.Physics

Sets the minimum closing speed \(pixels/s\) at which a contact fires OnCollisionHit. Lower values make hit events more sensitive; set to 0 to fire on every contact.

C#
public void SetContactHitEventThreshold(float minSpeed);

Parameters

minSpeed System.Single