moveToward(pointOrActor, speed, desiredDistance)
Moves toward (or away from) the given point or actor.
If gravity is enabled, the motion will only happen on the plane, not up/down. If gravity is disabled, motion occurs on all 3 dimensions.
||ActorRef | Vector3||The point (in world coordinates) or the actor towards which to move.|
||number||The speed with which to move towards the target.|
||number||0||The desired distance to the target. If we are farther than this, we will move towards the target; if we are closer than this, we move away from the target.|