Question by
melisahadimoglu · Apr 17 at 09:04 PM ·
triggerdetection
How to detect when the whole character's body has left a trigger?
Hi, I'm trying to make a small game of "fit through the hole". Here is what it looks like;
I've managed to create the mechanics for moving parts of the body using the bones from the rig of the character. I've attached colliders to these body parts as well. Here is video demonstration;
https://drive.google.com/file/d/1SCToflAV1_dh2sEoiQkCe26Hg3GfWWLo/view?usp=sharing
Now, I want to be able to detect when the body is positioned in such a way that it would "fit through the hole". I want to switch scene once this is achieved. I'm assuming I need to be able to detect when each collider for every body part has left the space of the white trigger object shown in video. Or is there a better way of doing this?
Thanks for all help!
fit.png
(336.1 kB)
notfit.png
(264.9 kB)
Comment