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 &) = deletecapture
cpp
std::shared_ptr<const PhysicsSnapshot> capture(raisim::World &world)