playMaker

Author Topic: Midpoint between 2 GameObjects [SOLVED]  (Read 2530 times)

adentutton

  • Playmaker Newbie
  • *
  • Posts: 9
Midpoint between 2 GameObjects [SOLVED]
« on: May 31, 2014, 05:22:47 PM »
Hey guys

Is there any way with Playmaker to find the Vector3 midpoint between 2 GameObjects and save that in a variable?

This follows onto my last thread where hopefully I can simulate the ball flight with tweens which mirror each other before it gets to the target

Thanks!
« Last Edit: June 01, 2014, 02:44:52 PM by adentutton »

TrentSterling

  • Junior Playmaker
  • **
  • Posts: 89
  • Someday I'll make games!
    • My Blog
Re: Midpoint between 2 GameObjects
« Reply #1 on: June 01, 2014, 08:37:51 AM »
You can use the math operations, or instead, simply use the Vector3 lerp action.

(using 0.5 as the halfway point)


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

adentutton

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Midpoint between 2 GameObjects [SOLVED]
« Reply #2 on: June 01, 2014, 02:45:06 PM »
Thanks! Works great!