Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Caffeen on January 16, 2015, 01:19:05 PM

Title: Add Force 2d, adding force in Self space? [SOLVED]
Post 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!
Title: Re: Add Force 2d, adding force in Self space?
Post by: jeanfabre on January 19, 2015, 01:17:23 AM
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
Title: Re: Add Force 2d, adding force in Self space? [SOLVED]
Post by: Ofonna on May 18, 2017, 10:19:16 AM
hi Jean, is this action still available, as i haven't been able to get it in the ecosystem.

thanks
Title: Re: Add Force 2d, adding force in Self space? [SOLVED]
Post by: jeanfabre on May 23, 2017, 02:21:07 AM
Hi,

Good catch, I'll update the post above.

 the action is available without the ecosystem, it's called AddRelativeForce2d

 Bye,

 Jean