playMaker

Author Topic: How to Toggle Collider with Set Property?  (Read 1889 times)

brendang

  • Junior Playmaker
  • **
  • Posts: 63
    • Out to Play Interactive
How to Toggle Collider with Set Property?
« 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.
« Last Edit: July 05, 2016, 02:42:46 PM by brendang »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: How to Toggle Collider with Set Property?
« Reply #1 on: July 05, 2016, 05:16:24 PM »
Hi,
You can find "enable Collider" and enable Collider 2d" actions on the Ecosystem

brendang

  • Junior Playmaker
  • **
  • Posts: 63
    • Out to Play Interactive
Re: How to Toggle Collider with Set Property?
« Reply #2 on: July 06, 2016, 09:39:39 PM »
Thanks for the heads up. Much appreciation.  :)