playMaker

Author Topic: Add force diagonally  (Read 1775 times)

derfmilar

  • Playmaker Newbie
  • *
  • Posts: 5
Add force diagonally
« on: February 06, 2017, 10:41:43 PM »
Hello all!

I'm trying to set up a dashing mechanic, but am running into issues when trying to make the dash work diagonally. I've attached an example of what I am attempting (this method works fine for up, down, left, right).

Thanks for any help / insight!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Add force diagonally
« Reply #1 on: February 07, 2017, 01:16:08 AM »
Hi,

 and where does it go when you do so? it doesn't go in diagonal?

 Bye,

 Jean

derfmilar

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Add force diagonally
« Reply #2 on: February 07, 2017, 10:54:23 AM »
Hey Jean,

That's correct, it does not go diagonally. It shoots the player straight up. Seems to be a pretty counterintuitive behavior.

Thanks for any help!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Add force diagonally
« Reply #3 on: February 08, 2017, 01:45:11 AM »
Hi,

 I would start on a fresh scene with just a cube with no gravity and see how it works there.

 It looks like something is countering your forces, Addforce action is working fine as far as I can test.

 Bye,

 Jean