CollisionDetectionMode2D

enumeration

Description 描述

Controls how collisions are detected when a Rigidbody2D moves.

See Also: [[Rigidbody2D::collisionDetectionMode]].

Properties 属性

DiscreteWhen a Rigidbody2D moves, only collisions at the new position are detected.
ContinuousEnsures that all collisions are detected when a Rigidbody2D moves.