The EnableTouchPersists
property of the PhysicsBody
class is used to set the EnableTouchPersists
property on all shapes associated with this physics body. This property determines whether persistent touch events are enabled for the physics shapes.
When set to true
, it indicates that at least one of the physics shapes has persistent touch events enabled. This can be useful for scenarios where continuous interaction with other physics objects is required, such as in cases where an object needs to maintain contact with another object over multiple frames.