matter-js
matter-js copied to clipboard
Please add an event for the body to come into view on the screen.
Please add an event for the body to come into view on the screen. An event when the body enters the visibility zone and when it leaves it.
And please tell me how now you can check that the body is in the field of view.
You can check if the body is in the field of view by comparing body.bounds
to render.bounds
.