Heya guys... really tired so can't figure this out... and I'm probably going about it the hard way, I need to turn off the solid setting on a body part after a particular collision.
The object needs to temporarily dead, the body part no longer affected by collisions. I tried the following:
orxSTRUCTURE *structure = orxSTRUCTURE(ballObject);
orxBODY *body = orxBODY(structure);
orxBODY_PART *part = orxBody_GetNextPart(body, orxNULL);
orxBody_SetPartSolid(part, orxFALSE);
But the body variable comes back == orxNULL.
What's a better way to do this?
Comments
but you can probably change the checkMask/selfMask so it doesn't collide with anything
Iarwain couldn't post from where he was, but he sent me through the answer:
orxBODY *body = orxOBJECT_GET_STRUCTURE(someObject, BODY);
This is a macro that retrieves the type you want by supplying the object and required type.
Located here in the object section of the API:
http://orx-project.org/orx/doc/html/group__orx_object.html
If so I can test it in the next few hours.