HTML and CSS Reference
In-Depth Information
Note
We know it's frustrating that you can't see 3D models by simply refreshing your browser.
Bear with us to output 3D models through the engine's draw loop, and we'll show you the
awesome result of what you've created.
Step 3: Detect overlap and remove entities
You've completed your output for 3D objects, but you need to append one more chunk of
code to cp.core.draw() with the following listing. It will add optimized collision de-
tection to properly monitor a (friendly) to b (enemy) overlap and clean up your graveyard.
Listing 9.15. core.js—Drawing shapes (continued)
Progress check!
Now is a good time to check your browser's console for errors other than run.js being miss-
ing. If so, you're good to move on to the next section.
 
Search WWH ::




Custom Search