Hey, so im trying to add foot step sounds to my character, but im don’t know what the best way to go about adding this feature is.
so far my 3 ideas/things ive tried:
-
Animation events: i haven’t yet tried animation events because ive done some research and found out that they don’t work with a blend tree so i haven’t bothered trying it.
-
Animations curves: i was trying to use curves because they blend across animations, but im not having to much luck. sometimes the foot step sounds just dont play. the curve set up i had was a flat line with 2 spikes 1 for when the left foot hits the ground and one for the right.
-
Raycasts: the last thing i tried was a sphere cast just beneath the foot calling foot step sounds when it hits a collider. but this isn’t working very well at all.
So i guess my question is what is the best method for foot steps? someone said in a post i found “the curves blend across the animations in the same way as any other curve, and I use zero-crossings to indicate when footfalls occur” but i didn’t know what they meant by zero-crossing.
So any help or suggestions would be great.
Thanks ~Scott