playMaker

Author Topic: Physics Material Bounciness Float [SOLVED]  (Read 633 times)

LuminRabbit

  • Full Member
  • ***
  • Posts: 161
  • Lumin Rabbit
Physics Material Bounciness Float [SOLVED]
« on: January 29, 2020, 06:19:45 PM »
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 :D
........

EDIT: I used an add-on from the ecosystem which has a Set Physics Material2d Bounciness.
Absolutely Fantastic! :) Thank you!
 
« Last Edit: January 29, 2020, 06:26:02 PM by Kodagames »
Have I said how much I love playmaker!!! This is one amazing tool