Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        Activebase1 = GameObject.Find("active1");
        Activebase2 = GameObject.Find("pivot_active1");
        passive     = GameObject.Find("PassiveBase");
        kinematics  = Activebase1.GetComponent <IK_Tcordinate>();
        key         = passive.GetComponent <Key_Input>();

        a1           = Activebase1.GetComponent <HingeJoint>();
        a2           = Activebase2.GetComponent <HingeJoint>();
        a1.useSpring = true;
        a2.useSpring = true;

        motor1.spring = 5000;
        motor1.damper = 500;
        motor2.spring = 5000;
        motor2.damper = 500;

        a1.spring = motor1;
        a2.spring = motor2;
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     passive = GameObject.Find("PassiveBase");
     Key     = passive.GetComponent <Key_Input>();
 }
        static public void Main()
        {
            Key_Input Form = new Key_Input();

            Form.ShowDialog();
        }