Hello,
Does anyone know how I would access a game objects physics material? I would like to add or subtract to the bounciness float.
So far I added a variable called bounce Component with the Type Object, then on the state I have a Get Component:
Game Object - Use Owner
Store Component - bounceComponent, Bounce (UnityEngine.PhysicsMaterial2D)
From here Im not sure how to get to the Bounciness or Friction float values? Any suggestions?
Hope everyone is having a fantastic day of game creation
........
EDIT: I used an add-on from the ecosystem which has a Set Physics Material2d Bounciness.
Absolutely Fantastic!
Thank you!