playMaker

Author Topic: Get info about 2d physics material? [SOLVED]  (Read 377 times)

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • Tumblr
Get info about 2d physics material? [SOLVED]
« on: September 05, 2018, 02:46:43 PM »
Hi I need to get the name of the 2d physics material on a game object. Is that possible?
« Last Edit: September 11, 2018, 05:19:09 PM by Gav (HeyBud) »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14593
  • Official Playmaker Support
    • View Profile
Re: Get info about 2d physics material?
« Reply #1 on: September 09, 2018, 11:49:20 PM »
Hi,

 you could use SetProperty action, but it's better to use dedicated actions, so I made it on the Ecossystem:

 GetPhysicsMaterialName and getPhysics2dMaterialName

Let me know how it goes.

Bye,

 Jean

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • Tumblr
Re: Get info about 2d physics material?
« Reply #2 on: September 11, 2018, 05:18:43 PM »
It works! Thank you!