-
Notifications
You must be signed in to change notification settings - Fork 5
VectorPool
Oğuz Eroğlu edited this page Jun 14, 2020
·
2 revisions
VectorPool
allocates a defined amount of Vector3D
objects to be used when necessary. As it's not adviced to allocate new objects inside hot functions.
// Allocates 20 Vector3D objects
var vectorPool = new Kompute.VectorPool(20);
// Get a Vector3D from the pool
var vector = vectorPool.get();
// Set its value
vector.set(10, 20, 30);
- Core
- Path
-
Steering Behaviors
- AlignBehavior
- ArriveBehavior
- AvoidBehavior
- BlendedSteeringBehavior
- CohesionBehavior
- EvadeBehavior
- FleeBehavior
- HideBehavior
- JumpBehavior
- LookWhereYouAreGoingBehavior
- PathFollowingBehavior
- PrioritySteeringBehavior
- PursueBehavior
- RandomPathBehavior
- RandomWaypointBehavior
- SeekBehavior
- SeparationBehavior
- Wander2DBehavior
- Wander3DBehavior
- Math
- Extra