mitay-walle / com.mitay-walle.phys-sound

The PhysSound system adds the ability to bring your physics to life through the use of impact and sliding sounds. The system works with both 2D and 3D physics.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PhysSound UPM-Package

Here's the license
Here's the download from the author

The PhysSound system adds the ability to bring your physics to life through the use of impact and sliding sounds. The system works with both 2D and 3D physics.

Install by Git URL

Added

  • 2D Samples Scene
  • 2D Trigger sample
  • surface type is recognized by PhysicMaterial
  • disabling Physics2D, Physics, Terrain Unity modules strip code through custom scripting define Symbols
  • ArticluationBody support, samples
  • delay for impact sound

Changed

  • Converted to UPM package
  • Demo converted to UPM package Samples
  • Custom Inspectors removed
  • codegen PhysMaterialType (int + string) replaced with PhysSoundKey (ScriptableObject)
  • Fallback now PhysSoundMaterial, and became recursive
  • collision events placed to separated components

Fixed

  • optimization distance check -> sqr distance check
  • Update() replaced with FixedUpdate() to fix KinematicVelocity became 0,0,0

There are 4 parts of the system:

  • PhysSoundDatabase : ScriptableObject

  • PhysSoundKey : ScriptableObject

  • PhysSoundMaterial : ScriptableObject

  • PhysSoundObject : MonoBehaviour

About

The PhysSound system adds the ability to bring your physics to life through the use of impact and sliding sounds. The system works with both 2D and 3D physics.

License:MIT License


Languages

Language:C# 100.0%