-
What do you want to achieve? Keep it simple and clear!
I want my gun welding in VR to be more clean. But there is a problem. I don’t know how. Think of it as you are playing a realistic VR FPS game where you can hold your gun with 2 hands. Go to the link below if you want to understand more.
Or have the gun welding system to be similar to OPPOSER VR.
-
What is the issue? Include screenshots / videos if possible!
This.
As you can see, when I try to hold it with 1 hand, it works fine. When I try to hold it with the other, the welding got wonky.
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I did look here Link but it didn’t give me a clear answer. Both of us used AlignPosition and AlignOrientation.
THINGS TO NOTE:
- The white orbs are the REAL VR controllers.
- The AlignPosition and AlignOrientation are both in the fake hands. The attachment0 is the fake hand attachment and the attachment1 is the white orbs attachment
- I used Motor6D to weld items. The parent of the Motor6D is the fake hand, the part1 is the offhand part (left hand welding part) and the center part (right hand welding part)
- AlignPosition’s maxforce is 2000, maxvelocity is infinite and responsiveness is 200. Alignorientation’s maxtorque is 1000, maxvelocity is infinite and responsiveness is 200.
- This game is SINGLEPLAYER FOCUSED. Meaning I don’t care what happens in the server.
The code below is what happens when I grab the part. the ActualHand is the hand that is grabbing.
elseif Parttograb.Name == "OffhandPart" and Parttograb:FindFirstChild("C1CFrame") then
ActualHand.Welder.Part1 = Parttograb
ActualHand.Welder.C1 = Parttograb.C1CFrame.Value
end
WHAT I TRIED:
- I tried using Ball and socket constraint on the left hand and connect it to the offhand part. But it turns out worse.
- I tried setting the left and right hand alignorientation to 0. But this happened.
- I then tried setting ONLY the left hand alignorientation to 0. But this happened.
So in conclusion. I tried quite a few things to get the 2 hand gun welding system working but most are just too wonky. How does OPPOSER VR do this thing?