1

Did you want this? var localVelocity = transform.InverseTransformDirection(worldVelocity); or var localVelocity = Quaternion.Inverse(orientation) * worldVelocity; This gives you a vector in the local coordinate frame of the transform/quaternion, where the z component is the forward velocity, the x component is the sideways velocity, and the y component is ...


Only top voted, non community-wiki answers of a minimum length are eligible