Closed GoogleCodeExporter closed 8 years ago
THe patch is applied in latest trunk, see
http://code.google.com/p/bullet/source/detail?r=2464
+ move the class in the c++ file
+ don't use new/delete but Bullet memory allocators (btAlignedAlloc/Free)
Original comment by erwin.coumans
on 12 Dec 2011 at 4:48
In the btDiscreteDynamicsWorld constructor there should be:
m_solverIslandCallback = new (mem) InplaceSolverIslandCallback
(m_constraintSolver, m_stackAlloc, dispatcher);
instead of:
m_solverIslandCallback = new (mem) InplaceSolverIslandCallback
(constraintSolver, m_stackAlloc, dispatcher);
in the case that constraintSolver is NULL.
Also, if you call btDiscreteDynamicsWorld::setConstraintSolver, then
InplaceSolverIslandCallback will still have the old m_solver.
Original comment by andres.traks
on 13 Dec 2011 at 9:20
Attachments:
Seems that it's safer to move constraint solver setting into Setup() function
instead of constructor, so it's always set to same as in world class?
Original comment by Anton.Br...@gmail.com
on 14 Dec 2011 at 1:15
thanks for the reminder, patch is applied in latest trunk:
http://code.google.com/p/bullet/source/detail?r=2541
Original comment by erwin.coumans
on 29 Jun 2012 at 10:37
Original issue reported on code.google.com by
Anton.Br...@gmail.com
on 7 Dec 2011 at 12:37Attachments: