playMaker

Author Topic: 2D force and velocity in self/local space  (Read 1799 times)

magritte

  • Playmaker Newbie
  • *
  • Posts: 12
2D force and velocity in self/local space
« on: July 09, 2014, 09:21:17 PM »
Hi guys, quick question: am I missing something, or is there currently no way to set a force for a 2D rigidbody in local space? It seems to work for world space only. Thanks.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: 2D force and velocity in self/local space
« Reply #1 on: July 10, 2014, 08:17:14 AM »
Hi,

 Good catch. I have attached this action, but you can also use the ecosystem to get it ( and the wiki addon page for unity 2d will get revamped soon to include new custom actions).

 Bye,

 Jean

magritte

  • Playmaker Newbie
  • *
  • Posts: 12
Re: 2D force and velocity in self/local space
« Reply #2 on: July 10, 2014, 08:01:56 PM »
Ah, thank you. One more question about the 2D: for the action 'collision 2d event', the description indicates that there are system events named 'collision enter 2d', 'collision stay 2d', and 'collision exit 2d', but I'm not seeing any of those. Is there something I need to do to activate them?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: 2D force and velocity in self/local space
« Reply #3 on: July 14, 2014, 06:56:16 AM »
Hi,

 You need to drop the prefab "PlayMaker Unity 2D" for these global events to become available, and you'll need the component "PlayMakerUnity2DProxy" on your 2d gameobject for this to work.

it's explained in the wiki page:

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

 Bye,

 Jean