Hello,
I am trying to fire a LineTraceByChannel
from the center of the third-person camera.
Currently, the LineTrace correctly follows the camera’s horizontal (Yaw) rotation,
but it does NOT follow the camera’s vertical (Pitch) rotation.
When I move the camera up or down, the Ray does not change direction.
How can I make the LineTrace’s End follow the camera’s Pitch as well?
Is there something wrong with how I am getting Get Control Rotation
?
I would appreciate your help in understanding the cause of this issue and how to fix it.
【Current Setup】
- Start →
FollowCamera → Get World Location
- End →
FollowCamera → Get World Location + (Get Control Rotation → Get Forward Vector × 1000)
- Using
LineTraceByChannel
for the trace
(I have attached an image of my current setup.)
【Environment】
- Unreal Engine 5.4.4
- Using ThirdPerson Template
FollowCamera
is attached toSpringArm (CameraBoom)
- Using Enhanced Input System
Thank you in advance for your help!