playMaker

Author Topic: Add force in the direction of an object  (Read 2387 times)

JollyMan

  • Playmaker Newbie
  • *
  • Posts: 10
Add force in the direction of an object
« on: December 14, 2014, 08:23:47 PM »
Hi,
All I want to do is add force to my bullet so that it goes towards a specific object but doesn't keep updating towards the object like the move towards action. Can anyone help?

Cheers,
JollyMan :)

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Add force in the direction of an object
« Reply #1 on: December 14, 2014, 09:14:26 PM »
You can add force in the Z direction on the bullet- then on an empty game object that is emitting the bullet add a "smooth look at" action that is pointing at the target
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

JollyMan

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Add force in the direction of an object
« Reply #2 on: December 15, 2014, 05:38:07 PM »
Hey,
I tried to do this but for some reason my bullet does not use the same rotation as the object it is spawned from so no matter if it is using the self space or world space it will go to one point on the map. Any ideas on how to fix this?

Cheers,
JollyMan :)