wrong cast?

Hamstray
Posts: 15
Joined: Thu Jan 11, 2007 7:45 pm

wrong cast?

Post by Hamstray »

in void btDiscreteDynamicsWorld::updateAabbs()

there is a cast btSimpleBroadphase* bp = (btSimpleBroadphase*)m_broadphasePairCache;

but i don't think it's safe to cast m_broadphasePairCache into a btSimpleBroadphase since it can be a btAxisSweep3.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Post by Erwin Coumans »

Thanks for reporting!

it was indeed wrong, it had to be btBroadphaseInterface*

Has been fixed in 2.44,
Erwin