ScenePhysics
The ScenePhysics class provides an interface for integrating external physics engine libraries with a Scene. It offers virtual methods for managing physics-related objects (bodies, shapes, and joints), and handling scene events. This allows for flexible and efficient integration of physics simulation into GPU-driven rendering pipelines.
#include <scene/TellusimScenePhysics.h>
Constructors
ScenePhysics()
Methods
Update body.
virtual void clearBody(Body &body)
virtual void updateBody(Body &body)
Update shape.
virtual void clearShape(Shape &shape)
virtual void updateShape(Shape &shape)
Update joint.
virtual void clearJoint(Joint &joint)
virtual void updateJoint(Joint &joint)
Clear scene.
virtual void clearSceneBegin(Scene &scene)
virtual void clearSceneEnd(Scene &scene)
Create scene.
virtual void createSceneBegin(Scene &scene, const Device &device, Async *async)
virtual void createSceneEnd(Scene &scene, const Device &device, Async *async)
Update scene.
virtual void updateSceneBegin(Scene &scene, const Device &device, NodeCamera &node)
virtual void updateSceneEnd(Scene &scene, const Device &device, NodeCamera &node)
Dispatch scene.
virtual void dispatchSceneBegin(Scene &scene, const Device &device, Compute &compute, NodeCamera &node)
virtual void dispatchSceneEnd(Scene &scene, const Device &device, Compute &compute, NodeCamera &node)