Skip to main content

PhysX

The PhysX plugin implements the ScenePhysics interface to provide 3D physics simulation using the PhysX physics engine. It enables physics-based behavior for scene objects, handling bodies, joints, collisions, and forces within a dedicated PhysX world context.

info

The plugins/physics/physx/extern/lib directory contains prebuilt PhysX libraries.

info

This plugin is integrated into Tellusim Explorer.

#include <physics/physx/include/TellusimPhysX.h>

Example

PhysX physics;

// Create PhysX physics
if(!physics.create(scene)) return false;

// Perform a single-step simulation update
if(!physics.update()) return false;

// Synchronize PhysX physics with the scene
if(!physics.update(scene)) return false;