playMaker

Author Topic: Vector 3  (Read 1194 times)

Practical

  • Playmaker Newbie
  • *
  • Posts: 8
Vector 3
« on: February 01, 2018, 06:17:20 AM »
Object1 is rotating without stopping on z axis. When he reaches z axis value at a point of - say 1,672, that triggers some other action on Object 2 FSM.
Now, I was trying to do that by using Vector 3 but I don't know how, should Vector 3 be on Obj1 or on Obj2, what variable then to use and how? Is there any other way around?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Vector 3
« Reply #1 on: February 03, 2018, 02:08:55 PM »
Hi.
The hard part is to know that it rotated x times.
because when it rotated 360 degrees it goes back to 0 (or -180 / +180 not sure)

if you have a constant speed rotation you could calculate the time spend and use a wait.
Then send an event to object 2 when wait is done.