I’m making a game with the RVO.
rvoAgent.DesiredVelocity = desiredVelocity + force*wallAvoidForce;
if ( enableRotation && velocity != Vector3.zero ) {
transform.rotation = Quaternion.Lerp (transform.rotation, Quaternion.LookRotation ( velocity ), Time.deltaTime * rotationSpeed * Mathf.Min (velocity.magnitude, 0.2f) );
AngleZero = Quaternion.Angle(transform.rotation, Quaternion.LookRotation(velocity));
}
tr.position = realPos + Vector3.up * height * 0.5f - center;
lastPosition = tr.position;
I would like to confirm the AngleZero and move at the RVOController.
Stop the rvoAgent.InterpolatedPosition wants to know how to turn the angle