Quantcast
Channel: Questions in topic: "addforce"
Viewing all articles
Browse latest Browse all 1264

How Do I Make My Bullet Add Force To The Object It Hits?

$
0
0
I've been looking around for a few days now and I still haven't found an answer so I'll ask it myself, in unity 2d I have a bullet prefab that has a trigger collider on the front. what I want to do is when an object enters that trigger collider the bullet adds rigidbody force on to that object in the direction the bullet is travelling?

Viewing all articles
Browse latest Browse all 1264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>