Factorio.com|Forums|Wiki|Mod Portal|API Docs Prototype|Runtime|Auxiliary

# Factorio Prototype Docs Version 2.0.7

## PrototypeStrafeSettings :: struct

Used by UnitPrototype.

## Properties

- default
- sorted

max_distance optional | :: double | Must be >= `0`.
Must be >= `0`.
ideal_distance optional | :: double | Must be between 0 and max_distance inclusive.
Must be between 0 and max_distance inclusive.
ideal_distance_tolerance optional | :: double | Must be >= `0`.
Must be >= `0`.
ideal_distance_variance optional | :: double | Must be >= `0`.
Must be >= `0`.
ideal_distance_importance optional | :: float | Must be between between 0 and 1 inclusive.
Must be between between 0 and 1 inclusive.
ideal_distance_importance_variance optional | :: float | Must be between 0 and ideal_distance_importance inclusive.
Must be between 0 and ideal_distance_importance inclusive.
clockwise_chance optional | :: float | Must be between 0 and 1 inclusive.
Must be between 0 and 1 inclusive.
face_target optional | :: bool |

clockwise_chance optional | :: float | Must be between 0 and 1 inclusive.
Must be between 0 and 1 inclusive.
face_target optional | :: bool |
ideal_distance optional | :: double | Must be between 0 and max_distance inclusive.
Must be between 0 and max_distance inclusive.
ideal_distance_importance optional | :: float | Must be between between 0 and 1 inclusive.
Must be between between 0 and 1 inclusive.
ideal_distance_importance_variance optional | :: float | Must be between 0 and ideal_distance_importance inclusive.
Must be between 0 and ideal_distance_importance inclusive.
ideal_distance_tolerance optional | :: double | Must be >= `0`.
Must be >= `0`.
ideal_distance_variance optional | :: double | Must be >= `0`.
Must be >= `0`.
max_distance optional | :: double | Must be >= `0`.
Must be >= `0`.

## Properties

### max_distance :: double optional

Default: `20`

Must be >= `0`.

### ideal_distance :: double optional

Default: `10`

Must be between 0 and max_distance inclusive.

### ideal_distance_tolerance :: double optional

Default: `0.5`

Must be >= `0`.

### ideal_distance_variance :: double optional

Default: `1`

Must be >= `0`.

### ideal_distance_importance :: float optional

Default: `0.5`

Must be between between 0 and 1 inclusive.

### ideal_distance_importance_variance :: float optional

Default: `0.1`

Must be between 0 and ideal_distance_importance inclusive.

### clockwise_chance :: float optional

Default: `0.5`

Must be between 0 and 1 inclusive.

### face_target :: bool optional

Default: `false`

Type used in

- UnitAISettings::strafe_settings