Agent Harness
Публичная копия обвязки агентной разработки: гейты, journeys, скиллы и шаблоны. Без ключей и личных данных.
Публичная копия обвязки агентной разработки: гейты, journeys, скиллы и шаблоны. Без ключей и личных данных.
import * as THREE from 'three';
// Camera game feel, all of it on the camera rather than in post:
// - trauma shake (Eiserloh, "Juicing Your Cameras With Math", GDC 2016): offsets = trauma^2 x Perlin
// noise, so small hits barely move it and big ones slam. Each source keeps its own frequency
// (earth rumbles at ~8 Hz, lightning cracks at ~30 Hz) and they mix weighted by trauma.
// - FOV punch and hitstop (Nijman, "The Art of Screenshake", 2013).
// apply() goes right after OrbitControls.update() and restore() right before the next one, so the
// controls never see the offsets and can't accumulate them. No allocations per frame.
const DEG = Math.PI / 180;
const YAW = 2 * DEG, PITCH = 2 * DEG, ROLL = 3 * DEG, MOVE = 0.06; // at trauma 1
const
i i i
i i i
i i
i x f x i s seed
a i s f b i s f
a b a f f f f f
_q _e _v
reduced
amount
decay
i
trauma
delay
slot
q q slot q q slot slot q
slot delay slot trauma slot freqHz
slot weakest
s
s s freqHz freqHz slot s
s weakest weakest s
slot slot weakest slot slot freqHz
slot slot trauma
p
p p p p p deg
p deg p p duration
seconds
camera
dt dt dt
q q q dt q q
dt
total yaw pitch roll x y z
s
s
s s s dt
w s t s
total w
yaw w t s pitch w t s roll w t s
x w t s y w t s z w t s
s s dt
total
tr total k tr tr total
_epitch k yaw k roll k
camera
x y zk camera
camera
p
p p
u p p
p u u u
p dt
camera camera
camera
camera_q
camera camera