734 B
734 B
Godot integration — clip-driven FP hands
Reference implementation: destroyulator/game/scripts/ViewModel.gd (the
_init_clip_arms / _set_clip_mode / _clip_locomotion functions) with headless
probe destroyulator/game/dev/probe_scifi.gd.
Recipe:
- Copy
assets/hands.glbinto your project (e.g.res://assets/viewmodel/scifi_hands.glb). - Instantiate the GLB scene as a child of your
Camera3D,position = Vector3(0, -1.55, 0.25),rotate_y(PI). - Find its
AnimationPlayer; setloop_mode = Animation.LOOP_LINEARon Idle / Idle_Fight / Walk_01 / Run_01. - Stance: play
Idle_Fight. Swing: play a randomAttack_0X; onanimation_finishedreturn to stance. Locomotion: crossfade Walk/Run by speed.