Gun aiming by range instead of HitPos
🔫 Weapons•Updated 2 days ago•0 views
Instead of constantly using HitPos from the CamController, save a 'Range' variable (updated on a button press like right mouse), then compute AimPos = Cam['Posi…
How to avoid aiming parallax - use camera position plus direction times range
Instead of constantly using HitPos from the CamController, save a 'Range' variable (updated on a button press like right mouse), then compute AimPos = Cam['Position',vector] + Cam['Direction',vector] * Range.