lianlab / gamekit

Automatically exported from code.google.com/p/gamekit
0 stars 0 forks source link

Physics debug draw doesn't work in LuaRuntime #178

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enable UserPrefs.debugPhysics and/or userPrefs.debugPhysicsAABB by Lua API
2. Run LuaRuntime

What is the expected output? What do you see instead?
Debug draw doesn't take effect.

What version of the product are you using? On what operating system?
Head of Main Trunk

Please provide any additional information below.
By setting break points, I found the gkScene's m_debugger is 0x0
And the draw code is:
if (m_updateFlags & UF_DEBUG)
{
    if (m_debugger) // <---- never pass!
    {
        m_physicsWorld->DrawDebug();
        m_debugger->flush();
    }
}

Hope this information is useful
Thanks

Original issue reported on code.google.com by dokin...@gmail.com on 8 Jul 2011 at 8:04