private void FixedUpdate() { if (playerState == PlayerState.Rolling) { ragDollController.AddForceToMove(horizontalVec * dx * 10000); ragDollController.AddTorqueCenterSpineHorizontal(horizontalVec.normalized, 1000); ragDollController.AddForce(forwardTf.forward * 500f); } }
public void Attacked(Vector3 attackedVec) { ragDollController.AddForce(attackedVec.normalized * 2000, ForceMode.Impulse); }