Phazorknight / Cogito

Immersive Sim Template Project for GODOT 4
MIT License
799 stars 90 forks source link

Dynamic Footstep System #58

Closed ac-arcana closed 6 months ago

ac-arcana commented 6 months ago

Here is my Dynamic Footstep System. It works well in my tests. There is a demo scene included. All of the resources, assets, and scripts are contained in the DynamicFootstepSystem folder. I did make a small change to the player script to support the system, but the system is optional and if it is not specified the player script will work normally and play generic footstep sounds.

Phazorknight commented 6 months ago

This works great, that's exactly what I imagined.

Only a small note, then I think we can merge this into main:

ac-arcana commented 6 months ago

Yes, I can get rid of the added player scene and modify the main player scene. I didn't want to change your base player without express approval. I'm not sure why the stamina component isn't working, I'll try to figure that out. I did the basic structure of including the player, player_HUD, and pause menu and linking them together.... I'll post once I've got some more commits for this.

ac-arcana commented 6 months ago

Okay so the changes are pushed to the main player scene now. I removed some extra lines from player.gd because there is no need to fall back onto the old system since it will be integrated now. The stamina component wasn't working because I didn't check "Use Stamina Component" on the Player Hud. The stamina was still working on the player itself by default, but the HUD doesn't get updated without that checked.

ac-arcana commented 6 months ago

I didn't properly support static meshes and rigidbodies. Also didn't support all of the CSG shapes. I'm working on these now.

ac-arcana commented 6 months ago

Okay, I think its ready for review again