liabru / matter-js

a 2D rigid body physics engine for the web ▲● ■

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Complete the rendering problem yourself

quirkybird opened this issue · comments

The question I asked might seem a little silly, but it really bothered me, the original question:
Question from stackoverflow
You can click on it and see, the question is that the way I write it, there is no such thing as Matter.Render.create where you can specify an element to specify the canvas to render, I render myself and there is no place to specify the canvas, but it can automatically add the physical world to the container, create a rigid body, The reference position is the top left corner of the container instead of the top left corner of the entire screen. How does this work
Here's a simple example