Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
reactphysics3d/reactphysics3d.h
✓ #include <reactphysics3d/reactphysics3d.h>
Creates a physics world with gravity and a dynamic body, then steps the simulation.
#include <reactphysics3d/reactphysics3d.h>
#include <iostream>
int main() {
rp3d::PhysicsWorld world(rp3d::Vector3(0, -9.81, 0));
rp3d::RigidBody* body = world.createRigidBody(rp3d::Transform::identity());
body->setType(rp3d::BodyType::DYNAMIC);
world.update(1.0f / 60.0f);
std::cout << body->getTransform().getPosition().y << std::endl;
return 0;
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.