Topics: Developer Forum
Feb 20, 2012 at 6:33 PM
Edited Feb 20, 2012 at 6:39 PM

I'm trying to make an enhanced version of Is it possible to make a Semi-Circle shape with this engine? I'd prefer not to fudge it by making a shape with a bunch of vertices.

I suppose the easiest way would be to override the Shape's collision logic to exclude collisions with objects that fall underneath its horizontal diameter, but I don't see any method for that and there's just so darned many.

Feb 21, 2012 at 9:54 AM
Edited Feb 21, 2012 at 9:55 AM

Override the OnCollision method, when you detect that the collision is below the center of the circle, just return false to cancel the collision.

Another option could be use the presolve, just take a look to the samples, specifically the onesided platform sample.