UD-Game-Development-Club / GameOff2024

The University of Dayton Game Development Club's submission to the GitHub's 2024 Game Off Game Jam.
MIT License
2 stars 0 forks source link

Footstep Controller #20

Closed zoogies closed 1 week ago

zoogies commented 1 week ago

https://github.com/user-attachments/assets/42ab9804-aff0-4dfa-9e6c-44393e2fa890

This works by adding a new FootstepController.cs script onto the Player prefab. I modified the player controller to perform a raycast downwards when we are moving in order to detect the tag of any gameobjects on the "Floor" layer directly below the player. This raycast will dispatch a call to FootstepController.cs to attempt to play a sound with the cooresponding raycast hit object's tag.

Stipulations:

zoogies commented 1 week ago

YOLO