Bind the SplitImpulse button to SimulationParameters and use the Objective-C SplitImpulse variable
Thanks to Shamyl Zakariya for the OSX Interface Builder help!
This commit is contained in:
@@ -237,6 +237,13 @@ static BOOL DrawContacts = NO;
|
||||
return;
|
||||
}
|
||||
|
||||
if (SplitImpulse)
|
||||
{
|
||||
demo->getDynamicsWorld()->getSolverInfo().m_splitImpulse=1;
|
||||
} else
|
||||
{
|
||||
demo->getDynamicsWorld()->getSolverInfo().m_splitImpulse=0;
|
||||
}
|
||||
if (DrawAABBs)
|
||||
{
|
||||
demo->setDebugMode(demo->getDebugMode() |btIDebugDraw::DBG_DrawAabb);
|
||||
|
||||
Reference in New Issue
Block a user