#i dont know how to explain it but it is
1 messages · Page 1 of 1 (latest)
yes
the aim assist will make you shoot at the closest object that's within 10 degrees of your original aim vector
yes
do you have a list of all possible targets?
if you mean the targets being cached no
is this 2D or 3D?
2D
one option would be to just get a list of all of the targets, and then compute the angle to each one
it doesn't feel very good, since you aren't using the physics system to find the targets you might be able to hit
you could also do a circle cast to find all enemies near where you aimed
yes which is why i am stumped ... i was hoping there was like a vision raycast but there isn't so i am looking for a function or a way to get me to make this work
this wouldn't be a 10 degree cone, though
further-away enemies would have to be at a smaller angle to be noticed
Which is pretty reasonable, IMO.
That'd be similar to a circle cast.
i can pre calculate which objects should be prioritized
You just need to get a list of candidates
Then, for each one, compute a vector to it
then find the angle between it and the aim vector
I did something very similar for a lock-on mechanic. let me find that code.
but they are moving
sure, so you get it when you need it