AttackGorilla Posted September 14, 2020 Share Posted September 14, 2020 I have gotten colliding bodies working for fracturing, but I have been unable to find a way to get the name of the colliding body to limit the fractures to only occur when the colliding body has a specific name. Is there a way to get the colliding a body's name? (or alternatively is there a way to apply masks to callback?) Link to comment
alexander Posted September 14, 2020 Share Posted September 14, 2020 Hi AttackGorilla, If you want to get the node's name you can use something like this: void contact_callback(BodyPtr body, int num) { const char *node_name = body->getContactBody1()->getObject()->getName(); } Best regards, Alexander Link to comment
Recommended Posts