User Tools

Site Tools


en:examples:physics:bodypart_name_from_collision_event

Retrieve BodyPart names from Collision Event

orxSTATUS orxFASTCALL PhysicsEventHandler(const orxEVENT *_pstEvent)
{
    if (_pstEvent->eType == orxEVENT_TYPE_PHYSICS) {
        orxPHYSICS_EVENT_PAYLOAD* payload = (orxPHYSICS_EVENT_PAYLOAD*)event->pstPayload; 
        orxLOG("Recipient %s | Sender: %s", payload->zRecipientPartName, payload->zSenderPartName);
    }
}

en/examples/physics/bodypart_name_from_collision_event.txt · Last modified: 2018/02/14 08:47 (2 years ago) (external edit)