Allow to store a behavior in a RBush (spatial data structure). Because this duplicates the AABB, this ensures the RBush AABB stays the same even if the underlying object is moved (in which case the behavior is responsible for removing/adding back/updating this BehaviorRBushAABB).

Type Parameters

Constructors

Properties

Methods

Constructors

Properties

behavior: T
maxX: number = 0
maxY: number = 0
minX: number = 0
minY: number = 0

Methods