RayForce homing lasers

A place for people with an interest in developing new shmups.
Post Reply
the1truepickaxe
Posts: 37
Joined: Thu Aug 17, 2017 6:59 pm

RayForce homing lasers

Post by the1truepickaxe »

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?
User avatar
Shepardus
Posts: 3505
Joined: Sat Dec 13, 2014 10:01 pm
Location: Ringing the bells of fortune

Re: RayForce homing lasers

Post by Shepardus »

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.
Image
NTSC-J: You know STGs are in trouble when you have threads on how to introduce them to a wider audience and get more people playing followed by threads on how to get its hardcore fan base to play them, too.
1CCs | Twitch | YouTube
the1truepickaxe
Posts: 37
Joined: Thu Aug 17, 2017 6:59 pm

Re: RayForce homing lasers

Post by the1truepickaxe »

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.
Thanks man!
Post Reply