Exemplo n.º 1
0
    public void Drop()
    {
        if (!m_CurrentInteractable)
        {
            Lost();
            return;
        }
        Rigidbody targetBody = m_CurrentInteractable.GetComponent <Rigidbody>();

        m_CurrentInteractable.ChangeKinematic_false();
        targetBody.velocity                = m_Pose.GetVelocity() * 6;
        targetBody.angularVelocity         = m_Pose.GetAngularVelocity();
        m_Joint.connectedBody              = null;
        m_CurrentInteractable.m_ActiveHand = null;
        m_CurrentInteractable              = null;
    }