void snapOutOfItBuddy() { meCollider.enabled = true; rb.isKinematic = false; Debug.Log("snapping out of it"); currentState = meState.NORMAL; anim.speed = 1; anim.enabled = true; foreach (Rigidbody arbee in meRagdollRigidBodies) { arbee.isKinematic = true; } foreach (Collider collismo in meRagdollColliders) { collismo.enabled = false; } }
//RAGDOLL STATE SHIFT STUFF void goRagdollBuddy() { isMoving = false; Debug.Log("going ragdoll"); currentState = meState.MUNTED; anim.speed = 0; anim.enabled = false; foreach (Rigidbody arbee in meRagdollRigidBodies) { arbee.isKinematic = false; arbee.AddForce(Vector3.Scale(rb.velocity, rb.velocity)); } foreach (Collider collismo in meRagdollColliders) { collismo.enabled = true; } rb.isKinematic = true; meCollider.enabled = false; }