matter-js icon indicating copy to clipboard operation
matter-js copied to clipboard

Complete the rendering problem yourself

Open quirkybird opened this issue 2 years ago • 0 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

quirkybird avatar Nov 28 '23 06:11 quirkybird