I want to see how epic implemented aim logic for the lyra project, but I can’t find where is the logic for the aim and shooting (specifically for the rifle) that is responsible for shooting the bullet exactly where the aim is
It’s hidden in C++ somewhere, related to Start Ranged Weapon Targeting found in GA_Weapon_Fire I believe.
It’s probably just a trace from the muzzle to an end point. An end point gotten by first doing a trace from the camera to a forward vector, far enough to hit wherever you might have a target. That will send a bullet to the crosshair.
Hi again Astaraa! you seem to know the most about Lyra. I am having trouble with line tracing. it always points to the world spawn location or at best straight along x or y or z axis. I cant get the line trace to simply go where i am aiming. do you know how to fix this in Lyra? Thanks!!