- Home /
Colliders ignoring each other on iOS?
I've developed a project where the user is able to zoom out using the multitouch display, but when i try to limit the zoom using colliders, they ignore eachoter and the camrea caontinues zooming out even through the collider.
what can i do to fix that?
Any help is appreciated
EDIT, i've also never worked with collision detection before
Do you have a collider and rigidbody on the camera object?
Answer by Peter G · Jun 28, 2011 at 01:39 PM
Colliders ignoring each other is almost always a case of moving your objects outside of the physics system. If you want colliders to respond to collisions, the moving collider must either have a rigidbody or a Character controller attached and you must move it using their functions.
Move()
SimpleMove()
AddForce()
AddExplosionForce()
rigidbody.velocity;
rigidbody.position
MovePosition()
AddRelativeForce
or any forces applied by joints will work too.
The important thing to note is moving an object by directly modifying its Transform will not involve the Physics engine and your colliders will pass through each other.
Your answer
Follow this Question
Related Questions
Moving Colliders giving me Physics.simulate spikes in Profiler 2 Answers
Punching a crate 0 Answers
Only take into account colliders' bounds on single gameobject in hierarchy 1 Answer
Is it possible to allow a raycast to pass through a collider to hit things behind it? 6 Answers
Creating a SIMPLE car. 1 Answer