Mastering Collision Channels: Reshaping the Challenge in the Charge Boss Battle
The Charge Boss AI encountered an issue where it mistakenly
identified the player's weapon as a collision with the environment, rendering
it incapable of attacking the player during active gameplay. This
unintentionally made the boss fight a cakewalk, with the player effectively
becoming invincible. To remedy this, I embarked on a quest to find a way to
have the boss focus solely on environmental, and player collisions while
ignoring the player's weapon.
My exploration led me to the documentation, where I stumbled
upon the concept of creating custom collision channels. Taking inspiration from
this discovery, I proceeded to craft a distinct collision channel for the boss
and another for the player's weapon. Subsequently, I configured these channels
to disregard each other, which had a transformative effect on the gameplay.
Thanks to this adjustment, the player regained the ability to damage the boss
using the appropriate methods, and the boss was finally able to challenge the
player without any unexpected collisions interfering with the encounter.
Author: Justin Bethea
Posted on 10/19/2023
Comments
Post a Comment