BRandomMovement constructor

BRandomMovement({
  1. double? speed,
  2. double maxDistance = 50,
  3. double minDistance = 25,
  4. int timeKeepStopped = 2000,
  5. bool checkDirectionWithRayCast = false,
  6. bool updateAngle = false,
  7. RandomMovementDirections allowDirections = RandomMovementDirections.all,
  8. dynamic id,
})

Implementation

BRandomMovement({
  this.speed,
  this.maxDistance = 50,
  this.minDistance = 25,
  this.timeKeepStopped = 2000,
  this.checkDirectionWithRayCast = false,
  this.updateAngle = false,
  this.allowDirections = RandomMovementDirections.all,
  super.id,
});