Btcmob NPC Bone Camera Cinematic
Attach the cinematic camera to a bone of a BtcMob NPC's model
The BtcMob NPC Bone Camera Cinematic entry attaches the player's camera to a bone of a live NPC model and lets it ride along with the animation — position and, by default, orientation. Unlike the regular NPC camera cinematic there is no path to author: the camera is wherever the bone is on that frame. A model that carries a dedicated camera bone animated in Blockbench therefore plays back in game exactly as it was previewed there. Works with both model engines: on BetterModel the bone's own axes are sampled, on ModelEngine the bone's rendered location is used directly. ## How could this be used? A dragon flies past and the camera rides its head. A boss performs a finisher and the camera follows the weapon. A mount takes off with the camera bolted to the saddle.
Поля
| Поле | Тип | По умолчанию | Описание | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
segments | List<BtcMobNpcBoneCameraSegment> | empty | —
|
| Поле | Тип | По умолчанию | Описание | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
startFrame | Int | 0 | — | ||||||||||||||||||||||||||||||||||||
endFrame | Int | 0 | — | ||||||||||||||||||||||||||||||||||||
definition | Ref<btcmobnpcDefinition> | — | The BtcMob NPC definition whose model carries the bone. The camera attaches to the nearest live mob of that definition visible to the player. | ||||||||||||||||||||||||||||||||||||
npc | Ref<btcmobnpcInstance> | — | Optional: a specific NPC instance to target instead of the nearest mob of the definition. | ||||||||||||||||||||||||||||||||||||
boneName | Var<String> | — | The bone the camera is attached to. | ||||||||||||||||||||||||||||||||||||
searchRadius | Double | 16.0 | Radius, in blocks, used to match the live mob (against the instance's spawn point, or around the player for a definition). | ||||||||||||||||||||||||||||||||||||
offset | Vector | — | Offset from the bone, expressed in the bone's own frame: X right, Y up, Z forward. | ||||||||||||||||||||||||||||||||||||
orientation | BtcMobNpcBoneCameraOrientation | — | —
|
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
mode | BtcMobNpcBoneCameraRotationMode | FOLLOW_BONE | How the camera is oriented once it sits on the bone. |
forwardAxis | BoneForwardAxis | NEGATIVE_Z | Which of the bone's own axes points forward. Blockbench models are authored facing -Z.Значения:NEGATIVE_ZPOSITIVE_ZNEGATIVE_XPOSITIVE_XNEGATIVE_YPOSITIVE_Y |
lookAtBone | Var<String> | — | LOOK_AT_BONE: the bone to look at. Leave empty to look at the mob itself. |
lookAtPosition | Var<Position> | ORIGIN | LOOK_AT_POSITION: the world position to look at. |
yaw | Double | 0.0 | FIXED: the yaw the camera keeps, in degrees. |
pitch | Double | 0.0 | FIXED: the pitch the camera keeps, in degrees. |
yawOffset | Double | 0.0 | Added to the resulting yaw, in degrees. |
pitchOffset | Double | 0.0 | Added to the resulting pitch, in degrees. |
Общие поля TypeWriter (criteria)
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
criteria | List<Criteria> | empty | — |