Unity Community |

hey everyone.. im having some issues with getting my missile to be destroyed on its collision..
Code:
{ }
thats the script i have attached to my missile, "block" is the tag of an item it will collide with
any help?
3d Modeler, Animator, and Developer
Download Bird Poop for for Free! Click Below!
Bird Poop Android!
Bird Poop iOS!
Online Portfolio at www.patsommer.com
It does not trigger ?
Check whether the gameObjets with tag "block" also have a collider AND whether one or both of the objects have a rigidbody (IsKinematic off).
http://unity3d.com/support/documenta...l/Physics.html
A lazy big fat chicken hibernating, sleeping peacefully.
!
thanks i actually just figured it out tho... i was making it way more complex then it had to be... simple enuff put this code on the missile prefab
Code:
}
works like a charm![]()
3d Modeler, Animator, and Developer
Download Bird Poop for for Free! Click Below!
Bird Poop Android!
Bird Poop iOS!
Online Portfolio at www.patsommer.com
You rewrote your script, right? I don't think it would run that way. Here's what I expect will run:
Code:
{ } }
And just to check that everything is triggering when it ought to, try this:
Code:
Also, check the "collision detection matrix" (on the page AkilaeTribe referenced) to make sure the missile object type can bump into the block object type.
Aw man, I was writing while you were figuring it out. Never mind.