I want to allow for items and other objects in my game that the player can pick up after colliding with them. I’m trying to figure out how to go about removing the mesh after collision.
As I understand it, a CollisionNode should be attached directly to the loaded model - then I can provide a handler which will look for collisions between the character (fromObject) and the item (intoObject).
Now, is there a method in place that will retrieve the “owning mesh” for a CollisionNode (IE the gun model that corresponds to the collision box around it) that has been in a collision? Or do I just need to make sure that the CollisionNode’s parent is always the owning mesh I then remove it by doing something like remove(collNode.parent)?
I’m sure this is something that is done all the time - I’m just wondering how it is usually handled.