NeomFlockingEngine class
Motor de simulación Boids OPTIMIZADO con profundidad 3D y spatial hashing
- Inheritance
-
- Object
- ChangeNotifier
- NeomFlockingEngine
Constructors
Properties
- alignmentWeight ↔ double
-
getter/setter pair
- attractor ↔ Offset?
-
getter/setter pair
- attractorStrength ↔ double
-
getter/setter pair
- audioAmplitude ↔ double
-
getter/setter pair
- audioBeat ↔ double
-
getter/setter pair
- audioFrequency ↔ double
-
getter/setter pair
- audioPhase ↔ double
-
getter/setter pair
-
boids
↔ List<
Boid> -
getter/setter pair
- cohesionWeight ↔ double
-
getter/setter pair
-
colorPalette
↔ List<
Color> -
getter/setter pair
- connectionMaxDistance ↔ double
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- height ↔ double
-
getter/setter pair
- maxForce ↔ double
-
getter/setter pair
- maxSpeed ↔ double
-
getter/setter pair
- perceptionRadius ↔ double
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- separationWeight ↔ double
-
getter/setter pair
- showConnections ↔ bool
-
getter/setter pair
- showTrails ↔ bool
-
getter/setter pair
- width ↔ double
-
getter/setter pair
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
clearAttractor(
) → void - Elimina el attractor
-
dispose(
) → void -
Discards any resources used by the object.
inherited
-
getConnections(
) → List< (Boid, Boid, double)> - Obtiene conexiones entre boids cercanos (cached)
-
initialize(
{required int count, required double canvasWidth, required double canvasHeight}) → void - Inicializa el sistema con N boids
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
setAttractor(
Offset position) → void - Establece el attractor en una posición
-
setColorPalette(
String mode) → void - Cambia la paleta de colores según el estado neuronal
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
) → void - Tick principal de la simulación - OPTIMIZADO
-
updateAudio(
{required double amplitude, required double frequency, required double beat, required double phase}) → void - Actualiza el estado del audio para reactividad
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited