Help|Move around Object

Hey all,
What’s up???
i try to make a script that make that if the distance is little of 7 the object (Car) will move around the Another Script (Player).
i have this for now:

if ( Vector3.Distance(player.position, transform.position ) < 13)
{
      transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.Euler(0, 118.3139, 0), 0.08f);
      transform.Translate(1, 0, 1);
}

it’s good???
the question is…:
how i make that when the distance is little of 7 the car will move around the player…
TNX for help!!!

UP!!!
Guy’s,
Please help me!!! :(…

What do you mean “move around the player”? Like orbit them like a planet? Or do you mean the car will move the player (as though the person was inside the car being driven around?) If the latter, attach the player’s transform.parent to the car’s transform.

Yes,
This is what i mean ;).

UP

.[quote=“anon_71568828, post:4, topic: 429453, username:anon_71568828”]
Yes,
This is what i mean ;).
[/quote]

What???
and how i do that???

http://unity3d.com/support/documentation/ScriptReference/Transform-parent.html

Seriously, KillerScript, take some initiative. Learn to use google: http://lmgtfy.com/?q=Unity+transform.parent It’s the first result.