# Enum.AvatarSettingsHitAndTouchDetectionMode

Roblox Engine API enum from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- HTML page: https://rapi.sleaze.dev/enums/AvatarSettingsHitAndTouchDetectionMode/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/enums/AvatarSettingsHitAndTouchDetectionMode

Determines whether hit detection and spatial queries use the individual body parts or the single collider when `CollisionMode` is `AvatarSettingsCollisionMode.SingleCollider`.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `UseParts` | 0 | Individual avatar body parts handle `Touched` events and spatial queries (`CanTouch` and `CanQuery` enabled on body parts) while the single collider part has `CanTouch` and `CanQuery` disabled. This is the default value for `HitAndTouchDetectionMode`. |
| `UseCollider` | 1 | The single collider part handles `Touched` events and spatial queries (`CanTouch` and `CanQuery` enabled on the collider) while all individual body parts have `CanTouch` and `CanQuery` disabled. |

## Used by

Each entry lists the class, then the role and names of the members that use this type.

- [AvatarCollisionRules](https://rapi.sleaze.dev/classes/AvatarCollisionRules.md): property `HitAndTouchDetectionMode`
