11/16/2023 0 Comments Oculus rift leap motion![]() ![]() Delete the Capsule Hands that are children of Hand Models.In the Left/Right Model fields, replace the Capsule hands with the RigidRoundHands you just added.In the Inspector under Hand Model Manager, expand Model Pool and Capsule Hands.Drag and drop RigidRoundHand_L and RigidRoundHand_R to the Hand Models object in the Leap Rig to make them children of it.In the Project window, navigate to LeapMotion -> Core -> Prefabs -> HandModelsPhysical.We want the opposite – invisible hands that cause collisions – so that it appears your real-life hands are colliding with the virtual objects. The default “hands” used in the Leap rig let you see where they are, but they can’t collide with anything in the scene. ZED Mini and Leap are now aligned in Unity Adding Physics Now when you run the scene, the wires should already be lined up with your hands. Click on that same gear, followed by Paste Component Values.When you can see in the Game window that Leap Offset is in a good place, click the gear icon in the top right of Leap Offset‘s Transform component, and click Copy Component.If using a Vive, you may also need to adjust the X rotation slightly. The Y position is most important, but make sure to move your hand around to make sure all axes are properly aligned. Without closing the scene, take off the headset, select Leap Offset and adjust its transforms to line it up properly. ![]() Fixing this is easy, thanks to the Leap Offset object we made. That’s because the Leap Motion is mounted below the ZED, so their images don’t line up. However, they won’t match your hands perfectly: ZED Mini and Leap need an offset correction Bring your hands in front of you and you’ll see Leap Motion’s hand tracking in action, drawing wires along your hands. You’ll see your real-life room, but with planets floating around it. Drag and drop the new Leap Offset object from the Hierarchy into the Device Origin field.This causes the rig to follow a particular object instead of the VR camera. In the Leap XR Service Provider component, set Device Offset Mode to “Transform”.In the Inspector, disable the Camera component – we’ll be using the ZED’s camera for the final image instead. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |