playMaker

Author Topic: Using 2D COLLIDERS with TRANSLATE in 2D  (Read 847 times)

ericmyersh2o

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Using 2D COLLIDERS with TRANSLATE in 2D
« on: May 14, 2015, 09:00:13 PM »
Hello fellow PlayMakers,

Something that I was really struggling with and couldn't find much information on was using COLLIDERS (specifically in 2D) while using the TRANSLATE action on objects.

First and foremost, make sure you have downloaded the PlayMaker 2D Addon which you can find here:

https://hutonggames.fogbugz.com/default.asp?W1150

Click and download the first link that says PlayMakerUnity2D.unitypackage with a paper clip next to it.

Once the package has downloaded double-click on the file with your project open to add the Plugin to your project.

Once that's out of the way we will now have the option to work with 2D collision actions. Now we need to get the colliders interacting.

Set up a ridgidbody2D collider on one or all of the objects and set the Gravity to 0. Then set any 2D Collider you would like to use on all objects you wish to affect.

Now set up a couple actions:

1) Add and set a Translate action
2) Add a 2D Collision Event action [the collision tag can be left to None]

Hit play and you should be good to go!

If this doesn't work for you please let me know as I may have forgot one or two steps but as far as I remember it really was this simple!

Thank you and best of luck on your projects!  ;)

Eric Myers

Cire Origins