Class ChaseWithOffsetMovement
- Namespace
- SurvivorsMaker.Simulation
- Assembly
- SurvivorsMaker.Simulation.dll
Built-in chase movement with a per-enemy seeded target offset.
public sealed class ChaseWithOffsetMovement : EnemyMovement, IEnemyMovement
- Inheritance
-
ChaseWithOffsetMovement
- Implements
- Inherited Members
Constructors
ChaseWithOffsetMovement()
public ChaseWithOffsetMovement()
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)