Skip to content

raisin::PhysicsSnapshotCapture ​

class · #include <rayrai/PhysicsSnapshot.hpp>

Physics-thread capture, without GL or locks: the caller protects the World. A frame is captured into again only after its last consumer released it. Objects whose render revision did not advance keep their state; the public visual arrays of articulated systems are compared every capture, and a heightmap rereads only the sample rows whose revision advanced.

Constructors & destructor ​

PhysicsSnapshotCapture ​

cpp
PhysicsSnapshotCapture()
cpp
PhysicsSnapshotCapture(const PhysicsSnapshotCapture &) = delete

~PhysicsSnapshotCapture ​

cpp
~PhysicsSnapshotCapture()

Public member functions ​

operator= ​

cpp
PhysicsSnapshotCapture &operator=(const PhysicsSnapshotCapture &) = delete

capture ​

cpp
std::shared_ptr<const PhysicsSnapshot> capture(raisim::World &world)

RaiSim — physics for robotics and AI.