Skip to content
Advertisement

Tag: collision-detection

Non overlapping random shapes on 2D plane

Objective: I want to create random non-overlapping irregular rounded shapes (contours) on a 2D plane, similar to a sandstone microstructure as shown below, to perform an oil flooding experiment using computer vision. Approach: I have previously done a similar thing but with circular shapes instead of random shapes. The result is as below. Also, I am aware of the programming

Pygame collision with masks

I have made a putt-putt game and now I want to add a slanted wall type. Because of this, I need to use masks for the collision (until now I have just used rects). I have spent hours learning about masks and trying to figure out why my code won’t work. There are no errors, the collision just isn’t detected.

Advertisement