How to calculate a line trace in an orthographic view?

I am currently working on a game with an orthographic view. I noticed doing any sort of tracing with my normal method does not work in this view and is offset from the player. What is the correct way to calculate a trace for this?


Hi Shieldboy, Welcome to the Forums. Good to see the Ortho Camera getting used. (Up until recently shadows didn’t work in Ortho Cameras!!!)

I just tried reproducing this in the Anim Sample (5.4.2) and everything is working as expected.

Maybe some of your settings/setup are different? - This is with a camera on a spring-arm, orthowidth is set to 1024

Also if that’s a custom character - maybe it’s ‘center’ is offset?

I figured out the issue! On my camera actor that I placed within my map, the setting “Constrain Aspect Ratio” was set to true. This was causing my issue.
UnrealEditor_2024-06-17_14-33-48
UnrealEditor_2024-06-17_14-34-41

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.