- Home /

# How do I calculate the speed of an object that I move with RotateAround()?,How do I calculate the speed of an object that I move using RotateAround()?

```
private float speed = 50.0f;
transform.RotateAround(spawnTransform.position, Vector3.up, (Time.deltaTime * speed * direction));
```

How would I calculate the object's speed in meters/second from the code above?

**Answer** by Bunny83
·
Aug 03, 2018 at 04:46 PM

You just rotate at a certain angular speed. Just convert the angle / second into radians / second so you get the distance traveled on the unit circle. Then just multiply by your "radius" of your circular motion and you get the distance traveled along the circular path per second:

concrete it would look like this:

```
float angularSpeed = speed * direction * Mathf.Deg2Rad; // rad/sec
float travelSpeed = angularSpeed * Vector3.Distance(transform.position, spawnTransform.position);
```

### Your answer

### Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.

### Follow this Question

### Related Questions

RotateAround 2 axes at once 0 Answers

error for transform.RotateAround 2 Answers

problem with the rotation of an object 1 Answer

Rotate object in the direction where it is going 1 Answer

Clamping RotateAround 1 Answer