Search Unity

Making arrow only hit objects on same Y axis it was fired

Discussion in 'Visual Scripting' started by Rektzn, Aug 18, 2020.

?

Am I making this too complicated for my 1st project?

  1. Yes

    0 vote(s)
    0.0%
  2. No

    0 vote(s)
    0.0%
  1. Rektzn

    Rektzn

    Joined:
    Jul 7, 2020
    Posts:
    1
    so my games scene looks like plants vs zombies (2D) but my archer can move up and down only and i want the arrow to only collide with enemies on the same row/Y value that the character shot it from. what makes this difficult is that the arrow wont be flying straight towards the enemy but "volley"/lobbed at them.

    My other option is maybe simplifying this to a single plane like a normal platformer as it is my first attempt at a project.