src/physics/SimplePhysicsEngine.js
// entry point for a single step of the Simple Physics
entry point for a single step of the Simple Physics
entry point for a single step of the Simple Physics
step(dt, objectFilter) {
        let objects = this.gameEngine.world.objects;
        for (let objId of Object.keys(objects)) {
            let ob = objects[objId];
            if (!objectFilter(ob))
                continue;
            this.objectStep(ob, dt);
        }
        this.collisionDetection.detect(this.gameEngine);
    }
step ( dt , objectFilter ) { let objects = this . gameEngine . world . objects ; for ( let objId of Object . keys ( objects ) ) { let ob = objects [ objId ] ; if ( ! objectFilter ( ob ) ) continue ; this . objectStep ( ob , dt ) ; } this . collisionDetection . detect ( this . gameEngine ) ; }
entry point for a single step of the Simple Physics
entry point for a single step of the Simple Physics
// each object should advance // shadow objects are not re-enacted // run the object step // emit event on collision