Why do my shotgun shells spread further as I go further?
Hello Community! I have made a shotgun system where it fires 11 shotgun shells. I have made it using this code.
It works fine it’s just that the further I go, the wider the spread gets. Is there any way to get the spread to always stay he same size? Thanks! Also I have a question about line tracing. Which one is better for guns. Line trace by object or line trace by channel. What are the pros and cons. Thanks!
asked Jan 15 '19 at 02:12 AM in Blueprint Scripting
you could use two groups of line traces the first group which shoots out from the gun and spreads, then the next group uses the end points of the first group as it's start position. Then the end position is just the shotgun's forward vector * range(float) + start position.
Alternatively you could just shoot a single sphere trace, but you wouldn't be able to do partial hits very easily.
Not sure about pros and cons, I would probably just go with line trace by channel visibility until I run into a situation where that won't work.
answered Jan 15 '19 at 03:26 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here