Keep Player in a 2D spherical room?
I have a spherical room where I want to place the player. However, I dont know how I can give the walls a collider. I have tried the Edge Collider, but you won't get a near-perfect circle with it. Is there a way to create some sort of "inverted" collider? So my player can move inside the circle, but not get out of it?
Answer by BloatedNikNak · Nov 01, 2018 at 02:25 PM
Have you tired adding a rigidbody to the sphere? You may want to disable gravity on the sphere, depending on what you are looking for.
Your answer
![](https://koobas.hobune.stream/wayback/20220612181341im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Compatible collision constraint methods 0 Answers
Problems with using OnTriggerStay2d 0 Answers
Trying to collide in grid like movement 1 Answer
Character hits invisible ghost collision when jumping against objects while pushing against them 0 Answers
Bounds.Intersects returns false while collision still works? 1 Answer