playMaker

Author Topic: Traffic cars  (Read 788 times)

Ayman

  • Playmaker Newbie
  • *
  • Posts: 24
Traffic cars
« on: August 06, 2018, 04:08:36 AM »
Hi
Can i make traffic ai cars with play maker or i should search for another asset
If it can tell me please how can i do it
Thanks

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Traffic cars
« Reply #1 on: August 06, 2018, 05:52:12 AM »
Hi.
I am sure it is possible, but how to do it depends on how you want them to behave.
So its not easy to explain.

A behavior example :
Have a front and rear trigger on each car then have a fsm with a trigger event.
if the front trigger hits a rear trigger, trigger the event and store the object.
Get the parent from the trigger that was hit, then get the velocity.
Then you can use that to set the velocity from the car that hit the rear trigger.