Peglin
Install

Details

Last Updated
First Uploaded
Downloads
42
Likes
0
Size
7.7KB
Dependency string
discohatesme-OrbTunneling-0.0.1
Dependants

OrbTunneling

Prevents Concentrication and Lazorb from passing through special pegs.

Technical Analysis

Removing extraneous stuff, pegs look something like this:

  • Peg Game Object
    • PegTrigger Game Object
      • CircleCollider
    • SpecialPegCollider Game Object
      • CircleCollider

The 2 CircleColliders here are the same size and overlap each other perfectly. The tunneling issue happens when the PegTrigger collision happens before the SpecialPegCollider collision. When you fire Concentrication, the PegTrigger collider is what "activates" the peg as it passes through, and the SpecialPegCollider is what causes the shot to bounce off crits and refreshes. If the PegTrigger collider happens before the SpecialPegCollider, the peg gets activated and "popped" which means that there's no longer anything that causes Concentrication to bounce. If the SpecialPegCollider gets hit first, everything works fine.

This issue seems to happen randomly (maybe 5% of the time) and at any time scale since it's likely due to the order in which Unity processes collision detections.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.