Zum Hauptinhalt springen

Bettermodel Hitbox Data

Configure hitbox on a specific bone

Felder

FeldTypStandardBeschreibung
hitboxesList<BoneHitbox>emptyList of hitboxes to attach to bones
BoneHitbox (7)
FeldTypStandardBeschreibung
boneNameString——
widthFloat0.5—
heightFloat0.5—
scaleFloat1.0—
offsetXDouble0.0—
offsetYDouble0.0—
offsetZDouble0.0—
Gemeinsame TypeWriter-Felder (priorityOverride)
FeldTypStandardBeschreibung
priorityOverrideOptional<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.