I would like to change the Transform of a dynamically created Compound Collider child to a specified position. Is it possible?
Is it better to create each child as a separate entity?
Yes. As of Unity Physics 1.3 this is possible.
After modifying the shape or transformation of the compound collider’s children, you have to call the CompoundCollider.Update function for the changes to be properly incorporated.
This function updates the spatial data structure used in the compound for collision detection and collision queries (such as raycasts or distance queries) with the compound and optionally also updates its mass properties.
1 Like