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
↧