CollisionDetectionMode

Specifies the collision detection mode for a physics object.

Collision detection can be performed in different ways depending on the required precision and computational cost. The modes range from discrete detection (the fastest but may allow missed collisions at high speeds) to speculative continuous detection (the most robust).

Note: The collision detection system operates with a precision of 0.001 meters (1 millimeter). When the distance between the surfaces of two colliders is less than this threshold, the colliders are considered to be in contact.

Entries

Link copied to clipboard

Discrete collision detection. This mode has the following characteristics:

Link copied to clipboard

Continuous collision detection with static objects only. This mode has the following characteristics:

Link copied to clipboard

Continuous collision detection with both static and dynamic objects. This mode has the following characteristics:

Link copied to clipboard

Speculative continuous collision detection. This mode has the following characteristics:

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Functions

Link copied to clipboard
fun valueOf(value: String): CollisionDetectionMode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.