You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, this project looks really interesting. I'm trying to use this in a visualisation. I've managed to set up a working physics world, and now I want render images on the location of certain particles. Have you any idea of how to do this? I've tried drawing with a different context that supports drawImag, but it seems its not possible drawing with two different contexts to the same canvas. Anyone done this?
The text was updated successfully, but these errors were encountered:
Did you find a solution? You can always access position with particle.pos.x/y and drawImage should work - something like ctx.drawImage(img,p.pos.x,p.pos.y);
Hi, this project looks really interesting. I'm trying to use this in a visualisation. I've managed to set up a working physics world, and now I want render images on the location of certain particles. Have you any idea of how to do this? I've tried drawing with a different context that supports drawImag, but it seems its not possible drawing with two different contexts to the same canvas. Anyone done this?
The text was updated successfully, but these errors were encountered: