Functions

 

A sun worshiper at the beach, walks to the shoreline to wave to a friend passing by in a boat.  The vehicle for the boat-riding object must be set to ‘boat’ so that the rider moves with the boat.  She then walks back to her chair.  We use the ‘distance to’ function to determine how far to walk.

 

Demo                     Code