RayForce homing lasers
-
- Posts: 37
- Joined: Thu Aug 17, 2017 6:59 pm
RayForce homing lasers
I was curious about how the game makes the homing lasers curve the way they do instead of hitting the target in a straight line. Does anyone know how the game accomplishes this?
Re: RayForce homing lasers
Re-aim the laser (set its velocity) every frame rather than just once when it fires. You can perform collision detection by representing the laser as a series of boxes along the path it traces. Here's a description of one implementation.
-
- Posts: 37
- Joined: Thu Aug 17, 2017 6:59 pm
Re: RayForce homing lasers
Thanks man!Shepardus wrote:Re-aim the laser (set its velocity) every frame rather than just once when it fires. You can perform collision detection by representing the laser as a series of boxes along the path it traces. Here's a description of one implementation.