I got the vive set up as per the instuctions. I got “guns” “swords” etc pick up able and dropable in game.
If I want to “put my gun away” in a holster on my waist… even if its just floating around ther while I move… how do I add a holster here?
Theres no mesh or skeleton to add it to. I have a skeleton on my hands but if I add it to the spine of that skeleton it swings around wildly with the controllers.
I tried adding a static scene component but it doesnt appear in the game or if it does its not where I want it. its like a few meters out away. I want a way to specifically add it to the “body” of the player.
Your body is not tracked, only your head and controllers are. So you’ll have to do some educated guessing where the body would be. For example you could try to place the holster halfway between the head and ground and see if that feels good.
Something that I haven’t seen yet but would probably work well would be a forearm holster. Body holsters always seem off to me because of varying torso lengths (some games my holster is on my thigh, some my chest even though they are intended to be waist holsters), but if you holstered a weapon on the forearm it would be easier to grab and release and could have a holster model for it attached there as well.
As for no place to put it, attach a scenecomponent to your character and have it stay a set distance below the HMD throwing out orientation, use that as an attachment point. If you get the forward vector of the camera rotation and multiply the offset by that then it is pretty easy in the end.