Hi there.
I’ve a small question about how to convert the mouse viewport position into 3D world location.
I tried it with:
ConvertMouseLocationToWorldSpace
and
GetHitResultUnderCursorByChannel
The Event should start another, server sided event, that spawns an object on the hit location.
This is the code right now:
This is placed inside the PlayerController. The server sided Event is right above it.
The problem I’m facing is:
Both Methods, to get the hit result under the cursor, return a vec3(0,0,0)…
No matter what I try… the hit result is always zero.
I can get the Mouse position with GetMousePosition_onViewport, but not the hit location under the cursor …
I also tried to line trace from the camera to the hit result… same… it always traces to the world location 0,0,0…
Has someone an idea why this happens?
