playMaker

Author Topic: Addforce Direction  (Read 3028 times)

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Addforce Direction
« on: April 25, 2013, 11:11:26 PM »
I found this link but it says solved. http://hutonggames.com/playmakerforum/index.php?topic=2841.msg12927#msg12927



 I tried it out and I wasn't able to master it. I got this in my actions but when I rotate the propeller it doesn't fly off in that direction. I recreated it to try to achieve basically the same thing in my scene which is to attack an enemy and have him fly off in the opposite direction he was hit from. Any suggestions?
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

Satrio

  • Junior Playmaker
  • **
  • Posts: 67
Re: Addforce Direction
« Reply #1 on: April 27, 2013, 05:56:03 AM »
I don“t know if this works, but I would try to attach the force to a null or empty gameobject, then rotate or manipulate that gameobject to see if the force can be controlled that way.
Also maybe put the coords to "self" or "local" instead of "world".

This is a common way to do it in other 3D apps, so it might just work.

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Addforce Direction
« Reply #2 on: April 28, 2013, 03:19:42 PM »
Hey satrio thanks for the suggestion. That is sorta what I have now but the ball isnt registering the rotation of the force as it's changing so it just keeps going in the same direction no matter where the force is located.
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez