GetAssetPack

Fracture

Fracture
Price
Free
Creator
Gleb Tsereteli
Engine
GameMaker

A GameMaker library for procedural Box2D destruction, with seven fracture patterns and box, circle, and hull shapes.

Fast and flexible physics-based destruction for procedural Box2D fracture effects in GameMaker.

Available on

Search by image

Upload a reference to find previews with similar colors, contrast, and detail.

Fracture

Fracture1 / 2
Gleb Tsereteli · itch.ioFree
License not indexed
  • i Check the terms on the original listing.
Show full terms

Fast and flexible physics-based destruction for procedural Box2D fracture effects in GameMaker.

A GameMaker library for procedural Box2D destruction, with seven fracture patterns and box, circle, and hull shapes.

View original listing

Description

Fracture

Fracture is a Free and Open Source GameMaker library for breaking objects into Box2D physics pieces using a variety of fracture patterns.

Add procedural physics-based destruction to your game with minimal setup. The library does the heavy lifting for you - geometry, physics and rendering are all handled internally.

Show full description...
  • Supported Platforms: Desktop and GX.games, likely Mobile and Console. HTML5 is not supported.

Features

  • 7 Fracture Patterns. Shatter instances with Grid, Brick, Diamond, Hex, Radial, Slice, and Voronoi, most with optional controls to dial in the look.
  • 3 Convex Shapes. Fracture instances as a Box, Circle, or Hull to match any convex sprite, with every Piece clipped to the shape boundary.
  • Physics & Impulse. Define Piece "materials" through physics properties and blow Pieces apart with an explosive impulse from any origin.
  • Automatic Fading. Pieces fade out and destroy themselves automatically, with randomized delay and speed for staggered, natural-looking debris.
  • Efficient Rendering. Pieces share a single (frozen) vertex buffer per fracture and draw in one pass, outclassing naive sprite baking or primitive drawing.
  • Lifecycle Control. Command existing Pieces at any time: clear them instantly, force a fade, or pause and resume them alongside your game's pause flow.
  • Fluent Settings. Chain .Physics(), .Mass(), .Impulse() and .Fade() before any fracture call to customize how Pieces feel, weigh, scatter and disappear.

Looking Ahead

Fracture began as a submission to the sixth Cookbook library jam, so its scope was deliberately limited to convex fracturing with 3 shapes and 7 patterns.

But the plans reach much further! Here are some of the things I'd like to add:

  • Concave fracturing. Support for arbitrary sprite shapes.
  • Cutting shapes. Split an instance along a line, with plans for supporting multiple cuts.
  • Geometry/physics separation. Fetch raw Piece geometry for custom effects without creating physics bodies, opening up non-physics workflows.
  • Caching. Cache hulls and pools of pre-generated geometry, keeping things as fast as possible at runtime.
  • Stylistic extras. Piece outlines, weighted seams, and recursive re-fracturing.

See the full list on the Upcoming Features page.

Credits

  • Created and maintained by Gleb Tsereteli.
  • Promo art by Gleb's wife Kate ❣️
  • Initially created as a submission for TabularElf's CookBook Jam #6.
  • runtile-for-gamemaker by attic-stuff, adapted to objects for the Walls demo.
  • Puzzle Pack 2 and Shape Characters by Kenney.
  • Asset Bundles by GameMaker.

Tags

box2dDestructionGameMakerPhysicsProcedural Generation

Downloads

Name your own price.