Hello.
Let’s say I have a collection like this :
– # root_object
__|-- ¤ script_component
__|-- # first_child_object
____|-- % collision_object_component
______|-- ■ box_shape
__|-- # second_child_object
____|-- % collision_object_component
______|-- ■ box_shape
In the on_message() function of script_component, if I listen to the “collision_response” message in this script, will the root_object receive the message from the collision_object_component in the child when it collides with another object in the scene (assuming groups and masks are set correctly) ?
Setting up a script component in each child just to send the collision message to their parent seems a little bit too much and I wonder if there is another option.
Maybe I can put a single collision object comprised of the two box shapes in the root object instead, but if the child objects are moved or rescaled, it would require to manually transform the shapes to match the children’s tranforms.