Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetHitEvents(bool)

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

Definition

public void SetHitEvents(bool hitEvents)

Parameters

hitEvents

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