Hi all, I've had a hard time finding an answer to this dilemma and was wondering if someone might have an idea.
For a project, I have a box of wrapped candy bars. The needs of the project involve the box itself being physics-driven and interactable, AND for the candy bars inside the box to have the same attributes. Currently I have them just set within the box, but the colliders I'm using for the box's floor and walls are so thin that the candy bars just fall right through when it moves even slightly fast.
Is there a way to temporarily parent the candy bars to the box and disregard their own physics, and then to disable that parenting and switch the physics back on for the candy bars if, say, you tilt the box at a certain angle?
Or is there an even better option for this sort of thing? I just need the candy bars to play nice and stay within the box while also being interactable should any of them be clicked.
Thanks in advance and sorry if this is worded poorly! I appreciate any feedback.
↧