dongju.jeong Posted October 8, 2019 Posted October 8, 2019 In case of the non-physical collider object, trigger->getNumContacts() is valid but only can't fire callback function?
fox Posted October 8, 2019 Posted October 8, 2019 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! 1
Recommended Posts