- Home /
Regarding dragging objects and boundries.
Hi,
In my game player can drag spheres and drop them into some zones. Game is rendered 2D with orthographic camera and spheres bounce at walls and borders of those zones.
Zones are triggers and each have four thin boxes as their boundary so spheres have something to bounce off, or else they would go inside a zone.
Problem is when player drags an sphere and release it ON one of those thin boxes that act as boundary of zones, they stuck into each other!
I would prefer that when this happens, sphere would go either left or right of this thin box rather than getting stuck inside it.
Thanks.
Answer by test84 · Dec 09, 2012 at 04:07 AM
Future reference for google crawlers who might get here by googling same question:
I solved it by increasing size of the boundary. When the ball was stuck, I noticed that parts of ball are out of the boundary so I increased it's size and apparently it's solved.
Your answer
Follow this Question
Related Questions
Can't click gameobject when over another trigger? 1 Answer
c# Object Drag ScreenToWorldPoint Limits 0 Answers
Using Collision to trigger animation in AR environment using Vuforia 0 Answers
Help changing plane.Raycast dragging script 1 Answer
Objects side by side without triggering the OnTrigger 1 Answer