playMaker

Author Topic: Set Velocity 2d in Local Space  (Read 1248 times)

Fome

  • Playmaker Newbie
  • *
  • Posts: 14
    • View Profile
Set Velocity 2d in Local Space
« on: September 15, 2015, 12:56:04 AM »
Hi All.

Loving playmaker so far.

However, I'm having some trouble moving a projectile in my 2d project.

It has a box collider and a rigidbody2d and I would like to move it using Set Velocity however the action only works in world space.

Is there a better way to do this? I noticed that the 3d action has a Local Space toggle...

Add Force 2d doesn't give quite the effect I'm looking for and I don't want to use Translate given the physics...

Any help would be appreciated. I already searched the ecosystem for an updated action.

Thank you.

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Re: Set Velocity 2d in Local Space
« Reply #1 on: September 15, 2015, 06:58:34 AM »

Fome

  • Playmaker Newbie
  • *
  • Posts: 14
    • View Profile
Re: Set Velocity 2d in Local Space
« Reply #2 on: September 15, 2015, 06:47:17 PM »
I used this with Add Force 2d and got the desired effect.

Thank you very much!