Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: brendang on July 05, 2016, 09:54:35 AM

Title: How to Toggle Collider with Set Property?
Post by: brendang on July 05, 2016, 09:54:35 AM
Hi all,

I have a simple 3D platformer with a Cube Character. I'd like him to be able to jump up onto 'special platforms' from underneath. My thought was to give him a collider on top, set it as a trigger, and when it collides with a platform from under, disable that platform's box collider(screen2a.jpg) for a moment.

I can access to the platform's Box Collider with Get Property, but I'm not sure how to toggle it, There is only an 'Enable' option (see screen1a).  Using C# it's pretty straight forward, but I'm trying to use Playmaker exclusively for this.

1 - is this the best way to do this?
2 - How do I toggle a box collider I've accessed with a Get Property Action.

Any help would be mighty appreciated.
B.
Title: Re: How to Toggle Collider with Set Property?
Post by: djaydino on July 05, 2016, 05:16:24 PM
Hi,
You can find "enable Collider" and enable Collider 2d" actions on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181)
Title: Re: How to Toggle Collider with Set Property?
Post by: brendang on July 06, 2016, 09:39:39 PM
Thanks for the heads up. Much appreciation.  :)