- Home /
 
 
               Question by 
               Abhaya.Agrawal · May 19, 2015 at 10:49 AM · 
                movementcollidercollision detectiondrag-and-droprestrict  
              
 
              Can we limit game object within specific Collider/Colliders?
i want to limit game object movement withing specific colliders at run time. so that when i try to drag and drop them outside my region they will go back to original position.
               Comment
              
 
               
              Drag and drop? How are you moving it? Colliders only automatically limit things with Rigidbodies, moving freely with physics. You you use a "mouse cast" to move it, you just have to program it to not move when you aren't over the collider.
Your answer
 
             Follow this Question
Related Questions
How to decrease the speed of the player by some fraction after triggering the box collider? 2 Answers
Character controller not fitting through door 0 Answers
Collision does not work, player can walk through walls 4 Answers
Movement restriction... 1 Answer
move character at constant speed, and detect collisions. 1 Answer