Custom Collisions
Jun 16, 2020
In Iron and Steel, a player can "push" and "pull" on metals in order to move the metals if they are movable or move the player if they are not.
In order to determine which of these must happen, the code must detect whether an object can be moved in a certain direction.
Since Unreal does not have this functionality by default, I made a custom collision checker that allows the game to tell whether an object can move in a given direction. It works by calculating whether a line segment from the center of the object collides with any physics blocking surfaces.