Documentation

Unity Engine


Unity Engine


SetHitEvents(bool)

Enable/disable hit events on all shapes attached to the body. See PhysicsShape.hitEvents.
Read time 1 minuteLast updated a month ago

Definition

public void SetHitEvents(bool hitEvents)

Parameters

hitEvents

Whether hit events are allowed on all shapes attached to this body or not.