Footstep sounds don't work well on stairs

EVG

Member
Footstep sounds do not work well on stairs and the sound does not always play.
UFPS 3.0.18
 
Thanks for the report. This was caused by the raycast failing with the upwards velocity. You can fix this by changing line 465 within CharacterFootEffects.cs from:

Code:
            if (Physics.Raycast(foot.position + m_Transform.up * 0.2f, -m_Transform.up, out hit, 0.21f + m_FootOffset, m_CharacterLayerManager.IgnoreInvisibleCharacterWaterLayers, QueryTriggerInteraction.Ignore)) {
to:
Code:
            if (Physics.Raycast(foot.position + m_Transform.up * 0.2f, -m_Transform.up, out hit, 0.21f + m_FootOffset + Mathf.Abs(m_CharacterLocomotion.LocalVelocity.y / Time.deltaTime), m_CharacterLayerManager.IgnoreInvisibleCharacterWaterLayers, QueryTriggerInteraction.Ignore)) {
 
  • Like
Reactions: EVG
Top