Bettermodel Hitbox Data
Configure hitbox on a specific bone
Champs
| Champ | Type | Par défaut | Description | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
hitboxes | List<BoneHitbox> | empty | List of hitboxes to attach to bones
|
| Champ | Type | Par défaut | Description |
|---|---|---|---|
boneName | String | — | — |
width | Float | 0.5 | — |
height | Float | 0.5 | — |
scale | Float | 1.0 | — |
offsetX | Double | 0.0 | — |
offsetY | Double | 0.0 | — |
offsetZ | Double | 0.0 | — |
Champs TypeWriter communs (priorityOverride)
| Champ | Type | Par défaut | Description |
|---|---|---|---|
priorityOverride | Optional<Int> | — | — |
How to use it
Each hitbox is an invisible interaction box that follows a bone. boneName is the bone, width and height the size (default 0.5), scale multiplies it, and offsetX, offsetY, offsetZ shift it from the bone position. Clicking a box counts as clicking the NPC.
When at least one hitbox is defined, the model's own hitbox bones are hidden and replaced by yours. The global height correction is hitboxYOffset in the definition's defaultAnimationSettings.