Answered by:
Advanced collisions
Question

Answers

Hi,
Not trivial so google the web for the physics and trig geometry.
Using extension there is LDPhysics that used box2D physics engine or LDShapes.Overlap that detects overlap of a circle and square.
To white your own collision detection and bouce physics is more work but a great challenge, maybe start with for basic physics
For a ball square collision you will have to first detect an overlap, then which face was hit and then bounce the ball off the face like a ball hitting a wall. To bounce the square and circle do it in centre of mass reference frame, probably ignore rotational inertia (causing ball and square to spin) initially.
 Marked as answer by ProfessionalOfSmallBasic Friday, January 13, 2017 10:52 PM
All replies

Hi,
Not trivial so google the web for the physics and trig geometry.
Using extension there is LDPhysics that used box2D physics engine or LDShapes.Overlap that detects overlap of a circle and square.
To white your own collision detection and bouce physics is more work but a great challenge, maybe start with for basic physics
For a ball square collision you will have to first detect an overlap, then which face was hit and then bounce the ball off the face like a ball hitting a wall. To bounce the square and circle do it in centre of mass reference frame, probably ignore rotational inertia (causing ball and square to spin) initially.
 Marked as answer by ProfessionalOfSmallBasic Friday, January 13, 2017 10:52 PM
