Need to define a muzzle flash in the WeaponBehavior data struct, and update the weapons.ron. For the ECS side of things we can copy how I did muzzle flashes here:
https://github.com/cBournhonesque/sixdof/blob/main/audio/examples/basic.rs
The renderer crate has an event for when weapons fire, right now it just plays audio. That's where you'd spawn the muzzle flash.
Need to define a muzzle flash in the WeaponBehavior data struct, and update the weapons.ron. For the ECS side of things we can copy how I did muzzle flashes here:
https://github.com/cBournhonesque/sixdof/blob/main/audio/examples/basic.rs
The
renderercrate has an event for when weapons fire, right now it just plays audio. That's where you'd spawn the muzzle flash.