AdaptiveQuadTreeManager class

Manages adaptive QuadTree updates

Instead of rebuilding QuadTree every frame, this class monitors particle movement and rebuilds only when necessary.

Constructors

AdaptiveQuadTreeManager()

Properties

frameSinceLastRebuild int
Get the number of frames since last rebuild
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

forceRebuild() → void
Force a rebuild on the next frame (e.g., after touch interaction)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Reset the frame counter
shouldRebuild() bool
Check if QuadTree should be rebuilt this frame
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

rebuildInterval → const int
How many frames to skip between mandatory rebuilds