MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / ~PhysicsDirect

Method ~PhysicsDirect

examples/SharedMemory/PhysicsDirect.cpp:118–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118PhysicsDirect::~PhysicsDirect()
119{
120 for (int i = 0; i < m_data->m_profileTimingStringArray.size(); i++)
121 {
122 std::string** str = m_data->m_profileTimingStringArray.getAtIndex(i);
123 if (str)
124 {
125 delete *str;
126 }
127 }
128 m_data->m_profileTimingStringArray.clear();
129
130 if (m_data->m_commandProcessor->isConnected())
131 {
132 m_data->m_commandProcessor->disconnect();
133 }
134 if (m_data->m_ownsCommandProcessor)
135 {
136 delete m_data->m_commandProcessor;
137 }
138
139 resetData();
140
141 delete m_data;
142}
143
144void PhysicsDirect::resetData()
145{

Callers

nothing calls this directly

Calls 5

sizeMethod · 0.45
getAtIndexMethod · 0.45
clearMethod · 0.45
isConnectedMethod · 0.45
disconnectMethod · 0.45

Tested by

no test coverage detected