Hi guys, i’m currently trying to add the ability to spawn an object in front of the player to give them an alert, be it “Out of ammo” or something like that. To do that i need to get the location and rotation of the HMD and then spawn an object at that location plus the forward vector multiplied by an amount.
This is what i have tried:
This rotates the sphere i am moving quite nicely but there is a few big issues. One is that it doesn’t care what way i am facing, the x,y position of the sphere is based only on where i am stood in the playspace, and the coordinates are exagerated so it doesnt track my position properly. It is also keeping the sphere a little bit above my head no matter what, even if i hold the HMD upside down.
Has anyone tried this and found a fix or good way to implement it?