Mechanic #2: Laser Bounce
One of the mechanics that I am working with is making a laser that gets reflected on a surface.
The laser is going to be reflected from the surfaces and the player must guide the laser to a certain destination.
This is the sample of what my particle system looks like. The first 3 particles are the lasers. The first streak will start off the line of laser. Then when the system detects a collision of the first particle, the second particle will start from the location of the collision. Then when the second particle detects a collision, it will start off the third particle from the location of the collision. But when the system detects the collision of the third particle, it will start the 2nd particle system on the colliding location of the third location and that "rule" is repeated. As a result, the laser will end up bouncing infinite times.
댓글 없음:
댓글 쓰기