schteppe / p2.js

JavaScript 2D physics library
Other
2.64k stars 330 forks source link

No tutorial for beginners #284

Open ed588 opened 7 years ago

ed588 commented 7 years ago

The only tutorial for beginners is the wiki, which doesn't cover showing the objects on the screen. I would write more but i have to go.

Scharnvirk commented 7 years ago

p2.js is a physics engine. It is not meant to show objects on the screen.

The simpliest way I can think of is just to draw dots or circles on a html canvas, where each dot represents your object and is drawn in coordinates supplied by p2 engine. This is not that hard actually.