Crash calling NewtonBodySetMatrix on disabled body

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

Crash calling NewtonBodySetMatrix on disabled body

Postby Cannos » Wed Nov 02, 2016 12:35 pm

Setting the matrix on a body with disabled simulation will crash.

Calling this:
NewtonBodySetSimulationState(body, 0);
NewtonBodySetMatrix(body, mtx);

will crash in this function:
dgBroadPhase::UpdateBody()

It looks like it's because the body has an invalid broadphase node. This can be avoided by checking the simulation state before setting the matrix, but its probably best to fix the crash anyway. And it would be nice if it was valid to move a body while disabled.
Cannos
 
Posts: 129
Joined: Thu Mar 04, 2010 5:41 pm

Re: Crash calling NewtonBodySetMatrix on disabled body

Postby Julio Jerez » Thu Nov 03, 2016 2:24 pm

oh yes, is does crash, I fixed now.
thanks for the bug report.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 5 guests