4

I'm newbie with Chipmunk physics and want to make an easy example of polygon explosion.

I started with the SmashLogo demo but in this example the are no explosions, only so much ball movements.

I know how to do polygon collision but my dude is for example how to explode a cube into many little pieces.

Yakk - Adam Nevraumont
  • 262,606
  • 27
  • 330
  • 524
Jorge Vega Sánchez
  • 7,430
  • 14
  • 55
  • 77

1 Answers1

0

Chipmunk doesn't support exploding objects in smaller ones. Your cube should in fact be composed of multiple fragments that will separate upon impact. If your cube is not frozen and is moving, you probably need to add some forces to keep the parts together before impact.

Stephane Delcroix
  • 16,134
  • 5
  • 57
  • 85
  • How would one handle just the explosive force? I want objects to explode and disappear when clicked. – CpILL Jul 23 '23 at 02:19