
Moderators: Sascha Willems, walaber
Layla wrote:I'm having a problem with waking up bodies
void DeleteAllContactsOnBody (NewtonBody* const body)
{
for (NewtonJoint* joint = NewtonBodyGetFirstContactJoint (body); joint; joint = NewtonBodyGetNextContactJoint (body, joint)) {
void* nextContact = NULL;
for (void* contact = NewtonContactJointGetFirstContact (joint); contact; contact = nextContact) {
nextContact = NewtonContactJointGetNextContact (joint, contact);
NewtonContactJointRemoveContact(joint, contact);
}
}
}
Layla wrote:Okay removing all contacts is exactly what I needed. Without doing that if you removed a body with another body ontop, the one ontop would stay asleep
JoeJ wrote:For the fracture splitting the cube to 8 smaller cubes might be an alternative.
Julio Jerez wrote:unlimited, it is a matter of
trying different patters of points.
JoeJ wrote:The game looks like real fun! I'm no fan of cube grid gfx, but it seems to contribute a lot to FPS gameplay - really cool
Some ideas: You could try dynamic downscaling of boxes before they disappear to hide the pop out effect.
For the fracture splitting the cube to 8 smaller cubes might be an alternative.
Users browsing this forum: No registered users and 0 guests