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)

shareHeightmapGeometry ​

cpp
void shareHeightmapGeometry(std::shared_ptr<rayrai_internal::SharedHeightmapGeometry> geometry)

Internal: build height-map geometry once for every capture sharing geometry, so height maps equal in samples, extents, center and heights share one PhysicsMeshSnapshot.

RaiSim — physics for robotics and AI.