Quantcast
Channel: Questions in topic: "gun"
Viewing all articles
Browse latest Browse all 592

How to make collision for the rocket launcer in singleplayer shooter?

$
0
0
Hi everyone. I made a rocket launcer and add a second camera for layer with this weapon. I cant add collision for the 3d model of rocketgun because it is bad for gameplay. This rocketgun instantiate rockets near the muzzle. If the weapon passes through the wall, the rockets are instantiated on the other side of the wall. How to fix it? ![alt text][1] [1]: /storage/temp/67116-2.png The only solution that I came up with is to cast a ray from beginning (Point A) to end (Point B) of rocket launcer and instantiate rockets in the point C where did this ray intersects with the wall. I don't think it's a good solution. If you know a simple and reliable solution - please tell me about them. ![alt text][2] [2]: /storage/temp/67115-screenshot-11.png

Viewing all articles
Browse latest Browse all 592

Trending Articles



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