Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: tofusoup on May 29, 2013, 04:47:52 AM

Title: Set Physics Material? [Solved]
Post by: tofusoup 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!

Title: Re: Set Physics Material?
Post by: jeanfabre 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
Title: Re: Set Physics Material? [SOLVED]
Post by: tofusoup on May 30, 2013, 11:14:10 PM
Thanks jean!

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