MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / destroyGhostObject

Method destroyGhostObject

src/Physics/Physics.cpp:122–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void Physics::destroyGhostObject() {
123 if (!m_ghostObject) return;
124 // Remove From World:
125 dynamicsWorld->removeCollisionObject(m_ghostObject);
126 // Delete Collision Shapes:
127 {
128 btCollisionShape *mainShape = m_ghostObject->getCollisionShape();
129 delete mainShape;
130 mainShape = NULL;
131 }
132 // Delete Ghost Object:
133 delete m_ghostObject;
134 m_ghostObject = NULL;
135}
136
137void Physics::buildGhostObject() {
138 btCollisionShape *shape = buildFrustumShape();

Callers 1

RenderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected