Exemple #1
0
    private void ReleaseMeFilthyHands()
    {
        m_planetController.Release();
        m_isGrabbed             = false;
        m_rigidBody.isKinematic = false;
        m_rigidBody.velocity    = m_planetController.GetHandVelocity();
        m_rigidBody.constraints = ~RigidbodyConstraints.FreezeAll;

        m_rigidBody.constraints = RigidbodyConstraints.FreezePositionZ | RigidbodyConstraints.FreezeRotationY | RigidbodyConstraints.FreezeRotationX;
    }