---
name: facet64-modular-battery-shunting-locomotive
description: Use when adding the facet64 3D model “Modular battery shunting locomotive” (animated, 6 animation clips) to a game or app: importing it, playing its clips by name, moving the character for in-place clips at their root speed, posing bones from code. Covers Godot 4, Unity, Unreal Engine 5 and three.js.
---

# Modular battery shunting locomotive — facet64 animated model

Facts of this model are in `animation.json` next to this file (same data as below). Page: https://facet64.com/model/modular-battery-shunting-locomotive.
License: facet64 Standard License (https://facet64.com/licenses/facet64-standard). Creator: facet64 Studio.

## The model

- Units: metres. Up: +Y in glTF and FBX. The model faces **+Z** (glTF); origin on the ground at the bottom centre.
- Height 3.89 m, width 2.94 m, depth 7.46 m (rest pose).
- 332,108 triangles.
- Files: `.glb` — all clips; `.fbx` — all clips, one take per clip; `.usdz` — one clip (Cab_Door_-1_PivotAction); `.obj` — static rest pose, no rig.

## Clips

| Clip (name in file) | Title | Length | Root speed | What happens |
|---|---|---|---|---|
| `Cab_Door_-1_PivotAction` (default) | Cab door 1 pivot action | 9.96 s | — | — |
| `Cab_Door_1_PivotAction` | Cab door 1 pivot action | 9.96 s | — | — |
| `Loco_Battery_ModuleAction` | Loco battery module action | 9.96 s | — | — |
| `Loco_Cab_ModuleAction` | Loco cab module action | 9.96 s | — | — |
| `Loco_Wheelset_-2.1_Axle_PivotAction` | Loco wheelset 2 1 axle pivot action | 9.96 s | — | — |
| `Loco_Wheelset_2.1_Axle_PivotAction` | Loco wheelset 2 1 axle pivot action | 9.96 s | — | — |

Clip names are case-sensitive: play them exactly as written. glTF has no loop flag — loop the clips yourself where it makes sense.

## Steps for an agent

1. Pick the format for the engine: Godot and three.js — `modular-battery-shunting-locomotive.glb`; Unity and Unreal — `modular-battery-shunting-locomotive.fbx` (with its `textures/`). Keep the license file with the asset.
2. Import at scale 1 (metres). Check the height after import: 3.89 m (389 cm in Unreal). Wrong by 100× — fix the import scale, not the model.
3. Start the default clip `Cab_Door_-1_PivotAction`. Switch clips by name with a short crossfade (0.1–0.25 s).
4. For in-place clips move the character yourself at the clip's root speed; scale playback speed with the movement speed if you need faster walking.
5. Posing from code (look-at, aiming): rotate bones **after** the animation update, on top of the clip pose.
6. Verify: play every clip once, check that the feet stay on the ground and nothing intersects; report the clip names you wired.

## Godot 4

Import `modular-battery-shunting-locomotive.glb` (drag into the FileSystem). In *Advanced Import Settings → Animation* set *Loop Mode: Linear* for looping clips.

```gdscript
@onready var anim: AnimationPlayer = $Model/AnimationPlayer   # "Model" — the instanced .glb scene

func _ready() -> void:
    anim.play("Cab_Door_-1_PivotAction")

func walk(delta: float, body: CharacterBody3D) -> void:
    anim.play("Cab_Door_-1_PivotAction", 0.2)                       # crossfade 0.2 s
    body.velocity = body.global_basis.z * 0.5   # the model faces +Z
    body.move_and_slide()
```

## Unity

Import `modular-battery-shunting-locomotive.fbx`. *Model*: enable *Bake Axis Conversion*. *Rig*: *Generic*. *Animation*: one clip per take; tick *Loop Time* for looping clips. Clips are in place — turn **off** *Apply Root Motion* on the Animator and move with a CharacterController.

```csharp
animator.CrossFade("Cab_Door_-1_PivotAction", 0.15f);
controller.Move(transform.forward * 0.5f * Time.deltaTime);
```

## Unreal Engine 5

Import `modular-battery-shunting-locomotive.fbx` as a Skeletal Mesh with *Import Animations* on; one Animation Sequence per clip. Set *Enable Root Motion* off (clips are in place). Drive the walk with Character Movement: *Max Walk Speed* 50 cm/s, and play `Cab_Door_-1_PivotAction` in the Animation Blueprint above zero speed, `Cab_Door_-1_PivotAction` at rest.

## three.js

```js
import * as THREE from 'three'
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js'

const gltf = await new GLTFLoader().loadAsync('modular-battery-shunting-locomotive.glb')
scene.add(gltf.scene)
const mixer = new THREE.AnimationMixer(gltf.scene)
const play = (name) => mixer.clipAction(THREE.AnimationClip.findByName(gltf.animations, name)).reset().fadeIn(0.2).play()
play('Cab_Door_-1_PivotAction')
// every frame: mixer.update(dt); for 'Cab_Door_-1_PivotAction' also gltf.scene.translateZ(0.5 * dt)
```
