I’m having trouble aligning an object with the player’s crosshair. I’ve used GetLocalForward
to calculate the direction the player is looking, and I moved an object in that direction, but the object doesn’t align correctly with the crosshair. I’ve tried drawing a debug line from the player’s position to the calculated direction, but the line ends up a bit below the crosshair.
Prop.Hide()
Forward:=Character.GetViewRotation().GetLocalForward()*Dis
Aiming:= Playerpos+Forward
Prop.MoveTo(Aiming,rotation{},0.1)
DebugDraw.DrawLine(Playerpos, Prop.GetTransform().Translation, ?DrawDurationPolicy := debug_draw_duration_policy.Persistent)