0x21f set-anim-rotation-axis-angle
Opcode 0x21f (543), draw. Investigated by OME, with high confidence (from investigation).
(handle)(delay_ms)(duration_ms)(axis_x)(axis_y)(axis_z)(angle_deg) — set the delayed one-shot axis-angle rotation channel. Handler converts axis/angle integers to floats; worker stores target axis obj+0x1f8 and angle obj+0x208 and builds target matrix obj+0x12c. gfx_object_apply_transform_channels samples current axis/angle linearly on shared start obj+0x34 and composes T(-anchor)*scale*rotation*translation*T(anchor).
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | object handle | imm, g-int | read |
| 2 | delay milliseconds | imm | read |
| 3 | duration milliseconds | imm | read |
| 4 | rotation axis X | imm | — (by build: SYS4422 read; SYS4433 read-float; SYS4438 read-float) |
| 5 | rotation axis Y | imm | — (by build: SYS4422 read; SYS4433 read-float; SYS4438 read-float) |
| 6 | rotation axis Z | imm | — (by build: SYS4422 read; SYS4433 read-float; SYS4438 read-float) |
| 7 | target angle degrees | imm, l-int | — (by build: SYS4422 read; SYS4433 read-float; SYS4438 read-float) |
In the port
OME’s port implements it. It never waits: a wait parks the engine until input, a sleep, a transition, a dialog or a movie ends. What it can do with control besides waiting:
falls: it returns to the next instruction
OME derives these facts from the port’s handler (its tools/opcode_flow.py), and they over-approximate: a fact some path can reach is given.
By build
Whether each build’s scripts use it, as OME’s survey of the game’s scripts saw them, and how many evidence items name the build.
| Build | Game | Used by its scripts | Evidence |
|---|---|---|---|
4.24J (SYS4422) | Himegari Dungeon Meister | yes | 1 |
4.33G (SYS4433) | Kamidori Alchemy Meister | yes | — |
4.38D (SYS4438) | Soukoku no Arterial | yes | — |
Evidence
- native-re on SYS4422, high confidence; Himegari AGE.EXE Ghidra /v2 and decoded script corpus (
vm-map/opcodes.toml opcode 0x21f): Ghidra handler 0x423410 -> gfx_object_set_rotation_channel@0x47eb70; consumer gfx_object_apply_transform_channels@0x472f00 uses delay +0x40, duration +0x54, current axis +0x1ec/angle +0x204, target axis +0x1f8/angle +0x208, current matrix +0xec and target +0x12c. Native SC0000 handle 0xcb8e sample at 11/390 of axis (0,0,1), 30deg matches matrix [0.9055,0.0134;-0.0134,0.9055] and translation (74.1449,47.3127).