Open JotaroS opened 4 years ago
ioLoop is pararelly starts up with physicsMainLoop, which accessing pantoPhysics.m_godObject earlier than it's instantiated.
void ioLoop() { PERFMON_START("[a] Receive serial"); DPSerial::receive(); auto connected = DPSerial::ensureConnection(); PERFMON_STOP("[a] Receive serial"); PERFMON_START("[b] Send positions"); //DPSerial::sendDebugData(); //DPSerial::sendInstantDebugLog("\n"); if (connected && sendLimiter.step()) { DPSerial::sendPosition();
currently fixed by adding delay after ioLoop::setup();
This has been hard-coded. still need to call physicsMain setup earlier than ioLoop.
ioLoop is pararelly starts up with physicsMainLoop, which accessing pantoPhysics.m_godObject earlier than it's instantiated.
currently fixed by adding delay after ioLoop::setup();