Getting Started
Start a new project in 3DE. Choose the 3D starter project (with Physics) template and name this project Tilt-a-Board.
Gravity and Other Setup
To get âphysicsâ working in the Purple Fruit Monster game, we needed to do a little work before the START CODING ON THE NEXT LINE line. Without enabling physics, shapes wonât fall, roll, bounce, slide, or do anything like real-world things do.
In this project, weâve chosen a template that already includes the setup needed for the physics engine to work. Double-check that you see the physics code in the âTilt-a-Boardâ project that you just created.
â | <body><â/bodyââ>â |
â | <script src=â"/three.js"â><â/scriptââ>â |
âââ â | |
â | <script src=â"/physi.js" ... |
Get 3D Game Programming for Kids, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.