- Home /
how to make a bullet that'll be like a missile.
how to make a bullet that does not immediately go down On The Land. I made a bullet and it is like a wall, if I'm on his path, he pushes me.
Answer by Justin Warner · Jan 15, 2011 at 08:08 PM
Use the collision functions to make it so it applies damage and destroys the object, so then it behaves like a bullet.
Answer by Kiloblargh · Nov 03, 2012 at 03:48 PM
To make it behave like a bullet, you can use a Raycast, do damage to the owner of hit.collider and instantiate a particle effect at hit.point. It will hit you before you see it.
To make it behave like a missile, give it a rigidbody, a mass and apply a local +Z force to it every frame so it accelerates, then on collision, apply a force away from the collision point, inversely proportional to the distance from that point, to every object inside a large sphere collider.
Your answer
![](https://koobas.hobune.stream/wayback/20220613095615im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
OnTriggerEnter2D only one time 1 Answer
Multiple OnTriggerEnter on one script? 2 Answers
onCollisionEnter vs onTriggerEnter 1 Answer
Looking for a contact.point alternative with triggers 0 Answers
rigid body isKinematic not triggering as expected? 2 Answers