Creating a physical car

We have prepared the car box body and two wheel bodies. We are just one step away from making a car. Imagine that now we have a glue stick to glue the wheels to the car body. Then, the car and wheels will not separate anymore, and we will have a car. We can use joint to achieve this. In this section, we will use joint to stick the wheels and the car body together.

Get HTML5 Game Development by Example : Beginner's Guide - Second 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.