Hi there,
I am working on a student project - developing a simple flight simulator using Unity and Leap Motion.
I have been trying to make a lever in the cockpit that would control the plane's speed. I have managed to make a lever (using a joint) that behaves properly when the cockpit is stationary, but not when moving.
After many unsuccessful attempts to fix it (sometimes i couldn't grab the lever, sometimes the lever would behave in bizarre ways), I realized I was having problems even with just simply grabbing an object while being in motion.
My current setup is this - I have a non-kinematic rigidbody that serves as the cockpit (the movement force is applied to it). The Leap Motion camera/hands are children of that object. The lever itself is not a child of the cockpit object (since, as far as I understand, it needs to be a non-kinematic rigidbody itself for the interaction engine).
So my questions are - how do I interact with objects that are in motion? Do you have any suggestion for how I should set up my scene? I am planning on adding a "steering wheel" later to the scene that I would like to behave similarly (an interactable object in motion).
I have been working on this for a while but I seem to have hit a wall. Any help would be greatly appreciated!