private void FixedUpdate() { ChangeState(); ExtMathf.LinearAcceleration(out actualAccelerationVector, rb.position, 4); actualAcceleration = actualAccelerationVector.magnitude; }