[ODE] Tutorial results in cube disappearing on impact.
fryeja at us.ibm.com
Tue Aug 14 10:02:07 MST 2007
I just had the same problem. In my case, it was in the nearCallBack
function, where in going from
one contact per collision to potentially many, I called
nContact = dCollide (o1, o2, MAX_CONTACTS, &(contact .geom), sizeof (dContactGeom));
where the last arg should be "sizeof (dContact)" instead.].
Hope this helps,
ode-bounces at ode.org wrote on 08/14/2007 09:34:10 AM:
> I followed the tutorial at:
> I made only a few changes, and only to do away with the use of
> QVector, I am using simple arrays instead (did not have qt development
> package installed when I started working on this).
> However, everything works except when the cube collides with the plane
> it disappears. It does NOT fall through, I don't see it pass through
> the plane, it just disappears.
> I have tried changing parameters such as gravity, cfs, boucyness, the
> cube's mass etc. to no avail. I have also used qWorldStep() and
> I placed cout statements throughout the code and can see that 3
> contacts are made, the requisite contact joints are created and joined
> to the bodies dWorldQuickStep() is then called. This is the point at
> which the cube goes away.
> I can upload my code if need be, does anyone have any idea of what
> to look for?
> ODE mailing list
> ODE at ode.org
More information about the ODE