playMaker

Author Topic: Turbo booster direction [Solved]  (Read 2857 times)

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Turbo booster direction [Solved]
« on: May 16, 2014, 01:52:11 PM »
Hi guys,

i'm trying to setup a directionnal boost for my amazing racing game

my first idea was to add force to the Axis of the vehicles, and well it works perfectly... but, my problem and undesired effect is that, i want this boost to be mono-directional, so player how will try to take this boost by reverse direction will be locked or slowered by this boost.

tryed many ideas but i still locked to see how to do.
« Last Edit: May 18, 2014, 04:10:48 AM by blackant »

TrentSterling

  • Junior Playmaker
  • **
  • Posts: 89
  • Someday I'll make games!
    • My Blog
Re: Turbo booster direction
« Reply #1 on: May 16, 2014, 02:26:17 PM »
Use this action to get the direction your booster is facing.


https://hutonggames.fogbugz.com/default.asp?W477

Add force with that action's output vector and you get a single direction booster. I suggest using the Z axis.  ;)
« Last Edit: May 16, 2014, 02:40:09 PM by TrentSterling »

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: Turbo booster direction
« Reply #2 on: May 16, 2014, 03:16:32 PM »
Great !

 thank you i was not known that this action exist !

after some tests, it may be the right way, to make it but you see, the problem now is that it propusle my vehicule back without taking in count the direction of the vector...or it does the same as if i set directly the force on Z
« Last Edit: May 16, 2014, 03:59:31 PM by blackant »

TrentSterling

  • Junior Playmaker
  • **
  • Posts: 89
  • Someday I'll make games!
    • My Blog
Re: Turbo booster direction
« Reply #3 on: May 16, 2014, 08:37:03 PM »
It should work right. I'll build a test project so you can see how the actions should be set up.  ;)

TrentSterling

  • Junior Playmaker
  • **
  • Posts: 89
  • Someday I'll make games!
    • My Blog
Re: Turbo booster direction
« Reply #4 on: May 16, 2014, 09:08:41 PM »


Attached is a simple unitypackage.

The meat of it is here:


blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: Turbo booster direction
« Reply #5 on: May 17, 2014, 01:31:21 AM »
I have followed the same process... doesn't work correctly,
i have also tryed to add force by frame but it doesn't change anything.

do you see something i made differently from your setup ?

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: Turbo booster direction
« Reply #6 on: May 18, 2014, 04:10:33 AM »
Thanks for your help it works now, my problem was because i used a Quad with Y axis for forward in local direction instead of Z.