Example #1
0
    private void Avoid(VisibleObjectData closestObject)
    {
        Vector3 steering = steeringBehaviors.Avoid(body, closestObject) * AVOIDANCE_VELOCITY;

        movement.ReduceSpeed(body);

        body.AddForce(steering);
    }