Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Caffeen on January 16, 2015, 01:19:05 PM
-
Is there any special reason why the Add Force 2d action doesn't have a "Space" field like the Add Force action does? Assuming there is, I'd be really grateful for any specific help figuring out the math to calculate this, since I'm assuming it's a trig calculation, and I know basically nothing about trig.
Specifically, I'm trying to figure out how to use Add Force 2d to add force to the Y axis in local space.
Thanks in advance!
-
Hi,
[EDIT] use now AddRelativeForce2d it's shipped with PlayMaker
The latest version does on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181).
you can get it here as well:
AddForce2d (https://github.com/jeanfabre/PlayMakerCustomActions_U4/raw/master/Assets/PlayMaker%20Custom%20Actions/Physics%202d/AddForce2d.cs)
Bye,
Jean
-
hi Jean, is this action still available, as i haven't been able to get it in the ecosystem.
thanks
-
Hi,
Good catch, I'll update the post above.
the action is available without the ecosystem, it's called AddRelativeForce2d
Bye,
Jean