I am working on some VR physics, and ran into a big issue with the Motor6D not working proper. I have it connected to the hand, and it just acts like it’s a regular object. I’ve tried welds and everything, but that doesn’t work either.
Video:
Code:
if rGrip then
otherPhysItems.isR = (if rGrip:HasTag(basicSettings.PhysGripTag) then true else false)
if otherPhysItems.isR then
otherPhysItems.rPhysGrab.Part1 = rGrip
end
else
otherPhysItems.isR = false
otherPhysItems.rPhysGrab.Part1 = nil
end
if lGrip then
otherPhysItems.isL = (if lGrip:HasTag(basicSettings.PhysGripTag) then true else false)
if otherPhysItems.isL then
otherPhysItems.lPhysGrab.Part1 = lGrip
end
else
otherPhysItems.isL = false
otherPhysItems.lPhysGrab.Part1 = nil
end
print(otherPhysItems.rPhysGrab.Part0) -- Object
print(otherPhysItems.rPhysGrab.Part1) -- Hand
print(otherPhysItems.rPhysGrab.C0) -- Part0 Offset
print(otherPhysItems.rPhysGrab.C1) -- Part1 Offset
print((if rGrip then rGrip.Anchored else false)) -- Is the object anchored?
Console if it’s hard to read:
Part0 = PhysR
Part1 = Grip
C0 = 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1
C1 = 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1
Anchored = false
All the values are correct as showed in the console I have in the video.
VIDEO ON YOUTUBE IF THE OTHER ONE WON’T LOAD: