playMaker

Author Topic: How to have an object transition from following one object to another?  (Read 2258 times)

indeed

  • Junior Playmaker
  • **
  • Posts: 85
If you have two animated objects, say two cubes, is it possible to have a third object, a sphere, follow one of their animations and then smoothly transition into following the other? So it starts following CubeA, and then when the sphere is clicked, it transitions to follow the motion/position of CubeB?

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Yep, try the smooth follow action.
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

indeed

  • Junior Playmaker
  • **
  • Posts: 85
I tried Smooth follow, but I didn't understand how to use that to do a transition from one object to another.

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
you have a state that waits for the player to select the object with the smooth follow action in that state, then when the player clicks the object it goes to the next state which has the same smooth follow action but with a new target B
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

indeed

  • Junior Playmaker
  • **
  • Posts: 85
Hmm, sorry if I'm missing something obvious. When I do this, my object just immediately jumps to the location of the second target when it is clicked.

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Oh! Then something a bit more complex would be to use the advanced lerp action found in the ecosystem. That should definitely work.
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

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
If you can't figure it out, try this.  Camera path animator on the asset store is really cool.  You can tons of cool things with little work.  I use it an am blown away.