- Home /
Creating a stream-attack with full-length hitbox
Using unity 2018.2.18! No other options sadly.
Basically, I want to create a slow-moving beam.
Players hit take damage. Someone walking into the beam at the beams halfway point would take damage and "block" the beam.
What's the best way to achieve this? I wouldn't want to spawn dozens of small projectile prefabs if possible, that seems inefficient. Can a raycast be slowed down enough to achieve this? Can I also give it a graphic?
Any help would be greatly appreciated, I never dealt with beam attacks before :)
Answer by Casiell · Jan 04, 2019 at 11:04 PM
You can create an object with a trigger collider and just increase the scale. You detect all hits with OnTriggerEnter.
Your answer
Follow this Question
Related Questions
How long would it take to make a 2d game? 0 Answers
Problem importing "survival shooter" 0 Answers
Random get element from a jagged array 1 Answer
Rotation of wheels of a car 1 Answer
Is there a way I could combine these scripts? If so, how? 1 Answer