MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / PhysicsObject

Method PhysicsObject

testbed/common/PhysicsObject.cpp:30–36  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

28
29/// Constructor
30PhysicsObject::PhysicsObject(rp3d::PhysicsCommon& physicsCommon)
31 : openglframework::Mesh(), mPhysicsCommon(physicsCommon) {
32
33 mBody = nullptr;
34 mColor = openglframework::Color(1, 1, 1, 1);
35 mSleepingColor = openglframework::Color(1, 0, 0, 1);
36}
37
38/// Constructor
39PhysicsObject::PhysicsObject(rp3d::PhysicsCommon& physicsCommon, const std::string& meshPath) : PhysicsObject(physicsCommon) {

Callers

nothing calls this directly

Calls 1

ColorClass · 0.85

Tested by

no test coverage detected