How can we snap "weapon" crosshair to a grid?

  • Goal: Use FPS template to plot 2D vectors on the ground into an array with grid precision.
  • Makes sense to just snap drag the hit location with the camera, instead of snap moving the camera.
  • Fire/LMB shoots a Line Trace. Hit Location vector is split. X and Y added to 2D vector array for every shot.
  • 2D vector array is for the system in the video below.

UE5 Geometry Script - Creating 2D Point Arrays

Ryan Schmidt