Reference API Roblox

Engine API

Website

Related

Reference API Roblox

AvatarSettingsHitAndTouchDetectionMode

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

Items 2

HistoryNameValueDescription
672UseParts0

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 AvatarCollisionRules.HitAndTouchDetectionMode.

672UseCollider1

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.

Description

Determines whether BasePart.CanTouch (hit detection) and BasePart.CanQuery (spatial queries) are routed to the individual avatar body parts or to the single collider part. Only takes effect when AvatarCollisionRules.CollisionMode is AvatarSettingsCollisionMode.SingleCollider; in other collision modes it is ignored.

History 3

Settings