Object move from current position directly towards viewer

Hello! We are almost done our class game project and all we need is help with one persistent problem.

We have objects travelling on bezier paths inside a World Tracking Ground node. We want the object to suddenly fly directly at the user/phone. Does anyone have suggestions about how we could script that?

1 Like

Hello @donnav,

Try to put a group in the bezier node, like “groupBezier” and other out of the bezier relative to the camera. The object you want to pass by the bezier and go to the camera, you let it out of both groups and then in the relative area, you set it relative to the groupBezier and the group relative to the camera. In this way you can do the animation by the RelativeToProp, like this:

image

Hope this helps!

att, HigĂŁo.

3 Likes