/// <summary> /// Constructs a new EntityMover. /// </summary> /// <param name="e">Entity to move.</param> /// <param name="linearMotor">Motor to use for linear motion if the entity is dynamic.</param> public EntityMover(Entity e, SingleEntityLinearMotor linearMotor) { IsUpdatedSequentially = false; LinearMotor = linearMotor; Entity = e; linearMotor.Entity = Entity; linearMotor.Settings.Mode = MotorMode.Servomechanism; TargetPosition = e.Position; }