Convert physical turret to holo turret in E2
I built a stabilizer for a physical turret setup in E2 — how do I switch to using holograms for the turret instead?
Just holo-parent the props and move the holos around with E2; the props become controlled by the holos, which are easy to control. For the stabilizer, derive a direction from the aim position and rotate toward it with clamps: GunDir=(((AimPos- vec(0,0,-Drop)) - Drift) -Gun:massCenter()):normalized() and GunAng = angnorm(clamp(GunAng - clamp(heading(vec(), GunAng, Self:toLocalAxis(GunDir)), -RotateSpeed, RotateSpeed), ang(-MaxElevation,-MinYaw, 0), ang(MaxDepression, MaxYaw, 0))). Wire hitpos up to AimPos.