While working on phet-io state, @zepumph suggested that photon movement and state setting might be more efficient if we use pooling for the vectors.
There are apparently some good examples in Projectile Motion, search for Vector2.pool.create( to see them.
While working on phet-io state, @zepumph suggested that photon movement and state setting might be more efficient if we use pooling for the vectors.
There are apparently some good examples in Projectile Motion, search for
Vector2.pool.create(to see them.