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 00:47 (7 years ago) by 127.0.0.1