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
I'm working on a thing at the moment that I want to eventually be like rolling a ball around a pool table.
I've got some of the way there, but when I move the sphere and it hits a wall, it just stays there.
I was wondering if there's a way to set restitution on objects like in matter.js for example? Or whether I need to detect the collision event and try and write the physics myself?
I've looked through various documentation but I'm struggling to find anything.
I'm working on a thing at the moment that I want to eventually be like rolling a ball around a pool table.
I've got some of the way there, but when I move the sphere and it hits a wall, it just stays there.
I was wondering if there's a way to set restitution on objects like in matter.js for example? Or whether I need to detect the collision event and try and write the physics myself?
I've looked through various documentation but I'm struggling to find anything.
My codepen here if it's helpful: https://codepen.io/fionchadd/pen/JjzVNOe/4ba15559a770ceda5d9eee881c244b04
Thanks!
Hannah
The text was updated successfully, but these errors were encountered: