- Home /
Being inside a collider
Hello!
I would like to make a player be able to enter a sphere and control its movement by parenting it to the player (for example). I changed sphere's collider to a trigger which detects when player enters - works fine. But the sphere then doesn't abide to physics laws, doesn't roll and moves through floor. I tried adding normal collider atop of the trigger - but then a player cannot enter it.
Are there any workarounds? Thank you very much!
Answer by zach-r-d · Jun 24, 2015 at 09:09 PM
Try having both a trigger collider and a non-trigger collider on the sphere, and use Physics.IgnoreCollision to only ignore collisions between the player's collider and the non-trigger collider (could do it using layers but it would be more complicated because the two colliders on the sphere would need to be put on different objects).
Your answer