Physics implementation for mini golf
Opened this issue · 1 comments
notken12 commented
Discussion of how physics will be implemented in mini golf
notken12 commented
Idea:
- Use matter.js (https://brm.io/matter-js/) as physics library
- Ball is a matter.js circle
- Compose map out of ground areas, walls, and bouncers
- Walls are simple matter.js shapes (rectangles)
- Ground areas are drawn onto canvas and are not matter.js shapes. They can have physical properties (slopes, flat ground)
- Bouncers are matter.js shapes (circles) that have a high amount of bounciness