playMaker

Author Topic: Set Physics Material? [Solved]  (Read 2229 times)

tofusoup

  • Playmaker Newbie
  • *
  • Posts: 30
Set Physics Material? [Solved]
« on: May 29, 2013, 04:47:52 AM »
I know you can set material on objects, but I didn't find anything that would allow me to set the physics material that is part of the rigid body. 

I was just messing around with bounce material settings and wanted to tweak the values in it, and or swap it out with another physics mat.

I might have missed it in my search.  Thanks!

« Last Edit: May 30, 2013, 11:14:33 PM by tofusoup »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Set Physics Material?
« Reply #1 on: May 29, 2013, 05:52:46 AM »
Hi,

 simply use the "Set Property" action.

 in your state, drag the Collider component itself onto the actions stack, and PlayMaker will ask you if you want to Set or Get a property of that component,

then you choose material/PhysicsMaterial and pick the one you want, or actually modify the material properties directly as well.

bye,

 Jean

tofusoup

  • Playmaker Newbie
  • *
  • Posts: 30
Re: Set Physics Material? [SOLVED]
« Reply #2 on: May 30, 2013, 11:14:10 PM »
Thanks jean!

Good old Set Property, I always forget I can drag component into it!