Class KeepDistanceMovement
- Namespace
- SurvivorsMaker.Simulation
- Assembly
- SurvivorsMaker.Simulation.dll
Built-in movement that approaches or retreats to a seeded preferred distance.
public sealed class KeepDistanceMovement : EnemyMovement, IEnemyMovement
- Inheritance
-
KeepDistanceMovement
- Implements
- Inherited Members
Constructors
KeepDistanceMovement()
public KeepDistanceMovement()
Methods
Init(SimWorld, Enemy)
At spawn: fixed per-enemy values (offsets, preferred distance, first target).
public override void Init(SimWorld world, Enemy enemy)
Parameters
Step(SimWorld, Enemy, float, float)
The position the enemy wants to be at after this tick, before clamping.
public override Vec2 Step(SimWorld world, Enemy enemy, float speed, float dt)