Demo of using TCastleRigidBody.ApplyImpulse to simulate an explosion throwing away a number of rigid bodies around.
Also shows that TCastleMeshCollider on a terrain works.
Using Castle Game Engine.
Compile by:
-
CGE editor. Just use menu items "Compile" or "Compile And Run".
-
Or use CGE command-line build tool. Run
castle-engine compilein this directory. -
Or use Lazarus. Open in Lazarus
physics_explosion_standalone.lpifile and compile / run from Lazarus. Make sure to first register CGE Lazarus packages. -
Or use Delphi. Open in Delphi
physics_explosion_standalone.dprojfile and compile / run from Delphi. See CGE and Delphi documentation for details.