Collision for basket hoop


#1

Does anyone have an example of a basketball shooting or soccer shootout game that I could reference. I have been working on this project for a week now, and while I’ve made some good progress I cannot get the right movement of the ball correct & now I have started working on the collision with the hoop its become 100x harder and Im stuck at where to go from here (collision is currently set to the back board just so I know what im doing is working)

https://launch.playcanvas.com/726005?debug=true


#2

If the hoop is static, you can use a custom collision mesh of an octagon hoop like this (maybe a little thicker) https://m.topshop.com/en/tsuk/product/bags-accessories-1702216/jewellery-469/hexagon-hoop-earrings-7983128

If it’s moving, you have to make it out of multiple primitives as the physics library doesn’t support dynamic or kinematic custom collision meshes IIRC.