Saturday, June 18, 2016

collision detection - How do I make a curved surface out of rectangular blocks?


For a Peggle-like game, I want to make blocks that follow a curve, like this:


blocks along a curve


The blocks would then disappear as the ball hits them.


I managed to draw some horizontally, but I'm having trouble making them follow a path:


my attempt at path-following blocks



How do I do this? Do I need to create Box2D objects with custom vertices?




No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...