Interesting tutorial. I'm curious on why you used line trace instead of just simple box collider overlaps or unreal message system (I don't remember the exact name rn). Can your method work if the player is facing the door but with the camera facing somewhere else?
@DamzGames132 күн бұрын
Great question! In my tutorial, the line trace originates from the camera view to ensure the player’s focus aligns with what they’re interacting with. However, it’s totally possible to set the line trace to originate from the player instead. That approach could work better if you want interactions based on proximity or player orientation rather than the camera view. And about collision overlap Both approaches have their use cases depending on your gameplay needs!