Problem with collider
I am developing a game which involves a flying drone delivering parcels. I have built the drone and made a script to fly it but when I put in obstacles it will not collide with them and instead it goes through. I have colliders on all of the actual objects and is trigger is unchecked but it still will not collide and goes straight through could you please tell me why this is happening.
Thanks in advance.
Screenshots and code? We can't help you without details.
I do have a collider and it definitely works because it collides with the floor but the rigid body is kinematic. I am moving it using transform.position will this affect the collide because of the nature of the movement
Use comments and not answers when you don't have an answer!!! Converted to comment.
For real, on this site we try to have "Answers" be only things which might answer the question, and everything else is a comment. The idea is, suppose you find an old Q and it has 12 Answers, but 10 of them are just more questions. Ick.
But, for example, if you reworded as "Add a collider," that could be an Answer (it would be a bad Answer, since they said they had colliders on everything. But still an Answer.)
Almost all follow-up Q's should be comments. If you think maybe something might be an answer, like maybe they forget to check some box, it can be a comment or Answer, depending how sure you are.
Answer by NGC6543 · Dec 27, 2015 at 01:05 AM
The best guess is that your drone has no Rigidbody attached, or your script is acting 'kinematically'(i.e moving drone by modifying its transform, not by adding force).
Answer by SidDixit · Dec 27, 2015 at 01:05 AM
you may check your collider ..... may be it is wrongly made....... you may use another collider object,they are available in standard assets