I try to make a sphere trace from my camera (VR) always 150 units downwards it’s up vector.
My approach was like this:
I created two static meshes in my Pawn. First one for the trace start point and the second 150 units downwards the startpoint and called endpoint.
Then in blueprint i construct the trace between these points. After that i make start and endpoint a child of my camera. But everytime I move my head the points rotation is the same. But I don’t want them to take my head rotation. They should only take the on top of all placed capsule rotation.
Is there really no answer, or did I make my question too complicated?
I try to explain it again with a picture.
I try to create a VR scene:
For a part of the project I would like to make a line trace always in the reversed direction to the UP Vector of my capsule. In addition, the position of this LineTrace should always update with position of the the camera. However, only the position.
It should get any kind of rotation from the Capsule.
I unfortunately don’t know how to explain it differently…
i hope you can help me.
Please.
The issue here seems to be that you have attached them to your Camera. This means, if you look up, the downward vector will change to in theory, be coming out of your chin.
You can either attach them just to the capsule, or why not use the inverse of the Pawn’s UpVector (-GetUpVector()).
Is it possible to keep/store the distance between the two spheres? If I use that, both are set to exactly the same position and lose their distance to each other …
Is it possible to keep/store the distance between the two spheres? If I use that, both are set to exactly the same position and lose their distance to each other …