Example #1
0
        protected override Vector3 GetNewWanderPosition(float radius)
        {
            Vector3 result;

            NavMeshHelpers.AttemptRandomNavPosInSphere(transform.position, radius, out result, BotNavMeshComponent.BotComponent.SqrInteractionMagnitude); //.SqrPersonalSpaceMagnitude); // .RandomNavPosInSphere(transform.position, radius);
            return(result);
        }
Example #2
0
 /// <summary>
 /// Get a valid random position within the wander radius of the provided wanderCenter
 /// </summary>
 protected override Vector3?GetNewWanderPosition(Transform wanderCenter, float radius)
 {
     return(NavMeshHelpers.RandomNavPosInSphere(wanderCenter.position, radius, BotLocomotiveComponent.SqrInteractionMagnitude));
 }