Jump to content

physicalTrigger


photo

Recommended Posts

dongju.jeong

You're right, callback functions are only fired when a physical object (with body and shape assigned) gets inside or outside the physical trigger.

The trigger has its own physical shape, so both Shape-Shape and Shape-Surface collisions are detected for it in accordance with conditions described in this article.

Thus, in case of a non-physical collider object, no callbacks will be fired, but a contact with this collider object will be detected and the counter value returned by the  trigger->getNumContacts() will contain this contact.

I hope I understood your question right.

Thanks!

  • Like 1
Link to comment
×
×
  • Create New...