Box2D
The Box2D plugin implements the ScenePhysics interface to provide 2D physics simulation using the Box2D physics engine. It enables physics-based behavior for scene objects, handling bodies, joints, collisions, and forces within a dedicated Box2D world context.
info
The plugins/physics/box2d/extern/lib
directory contains prebuilt Box2D libraries.
info
This plugin is integrated into Tellusim Explorer.
#include <physics/box2d/include/TellusimBox2D.h>
Example
Box2D physics;
// Create Box2D physics
if(!physics.create(scene)) return false;
// Perform a single-step simulation update
if(!physics.update()) return false;
// Synchronize Box2D physics with the scene
if(!physics.update(scene)) return false;