S5-VR-Game / game

2 stars 0 forks source link

Task description display on hud #88

Closed JonasPTFL closed 9 months ago

JonasPTFL commented 9 months ago

Adds feature to display task description on HUD, when player is nearby a game task.

Task spawn point script now adds a default BoxCollider. This collider is set to trigger to not physically interact with the player. If a player collides with the trigger (walks into the collider), the task description will be displayed in the HUD, which can be toggled with 'I' key on keyboard for debugging purpose. If a task needs a custom collider, you can add a collider component to the spawn point and assign the created collider in the TaskSpawnPoint script. If setup, the custom collider will be used for collision detection.

JonasPTFL commented 9 months ago

Yes, you are right, we should create custom collider for some tasks. I will add a task to the project board.