# Is it possible to move forward an arcRotateCamera?

**URL:** <https://forum.babylonjs.com/t/is-it-possible-to-move-forward-an-arcrotatecamera/18386>\
**Category:** Questions\
**Tags:** camera\
**Created:** [February 12, 2021, 1:54pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-move-forward-an-arcrotatecamera/18386 "2021-02-12T13:54:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![MizuMar0](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mizumar0/32/14354_2.png) [@MizuMar0](https://forum.babylonjs.com/u/MizuMar0)\
**Post date:** [February 12, 2021, 1:54pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-move-forward-an-arcrotatecamera/18386/1 "2021-02-12T13:54:15Z")

</div>

Hello, I am using an arc rotate camera to my project for having a target on an object or center of my scene if nothing is selected and i have to implement a feature to move the target of my camera in order to move the target position forward, left,right and backward of my view.

It’s possible with other camera but i don’t found solution for Arc rotate .

There is an example with universalCamera : [https://www.babylonjs-playground.com/#IA7LXQ#2](https://www.babylonjs-playground.com/#IA7LXQ#2)

I am also thinking if it’s possible to change the type of my camera during the action of movement and re-set it as a Arc rotate camera but how can i get the correct target after that ?

Ps: Sorry for my english if there is any misunderstanding

---

<div class="post-metadata">

**Author:** ![MizuMar0](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mizumar0/32/14354_2.png) [@MizuMar0](https://forum.babylonjs.com/u/MizuMar0)\
**Post date:** [February 12, 2021, 2:19pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-move-forward-an-arcrotatecamera/18386/2 "2021-02-12T14:19:16Z")

</div>

Maybe can i use the Beta to determine the direction i need to move but how can i get the X,Z axis to determine forward ?  
I didn’t precise but i don’t want to change my Y axis position.

---

<div class="post-metadata">

**Author:** ![PirateJC](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/piratejc/32/1003_2.png) [@PirateJC](https://forum.babylonjs.com/u/PirateJC)\
**Post date:** [February 12, 2021, 5:49pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-move-forward-an-arcrotatecamera/18386/3 "2021-02-12T17:49:41Z")

</div>

Hi @MizuMar0

Welcome to the Babylon family! Great to have you hear!

The distance between an arcRotateCamera and its target is the radius value. If you decrease the radius, the camera will move closer to the target.

This can be animated over time. You can also change the target location of the camera.

Between these two properties you SHOULD be able to create a system where the target moves and the distance to that target move.

I hope this is helpful.

Here’s a handy doc about the arcRotateCamera that you can check out to learn more:

> **[Camera Introduction | Babylon.js Documentation](https://doc.babylonjs.com/divingDeeper/cameras/camera_introduction#arc-rotate-camera)**
>
> Introduction to the different camera types in Babylon.js.

I hope this is somewhat helpful!

---

<div class="post-metadata">

**Author:** ![MizuMar0](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mizumar0/32/14354_2.png) [@MizuMar0](https://forum.babylonjs.com/u/MizuMar0)\
**Post date:** [February 12, 2021, 6:38pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-move-forward-an-arcrotatecamera/18386/4 "2021-02-12T18:38:50Z")

</div>

Thanks for your reply, I know how to move the camera but how can i move it in forward, left, right or backward of the view direction, it’s not a problem if the use don’t move the camera.

---

<div class="post-metadata">

**Author:** ![PirateJC](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/piratejc/32/1003_2.png) [@PirateJC](https://forum.babylonjs.com/u/PirateJC)\
**Post date:** [February 12, 2021, 7:09pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-move-forward-an-arcrotatecamera/18386/5 "2021-02-12T19:09:11Z")

</div>

Since the arcRotateCamera always points at a target, if you move that target, the camera will move.

If you move the target position left, right, forward, etc, the arcRotateCamera will move left, right, forward accordingly.

---

<div class="post-metadata">

**Author:** ![MizuMar0](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mizumar0/32/14354_2.png) [@MizuMar0](https://forum.babylonjs.com/u/MizuMar0)\
**Post date:** [February 15, 2021, 8:37am UTC](https://forum.babylonjs.com/t/is-it-possible-to-move-forward-an-arcrotatecamera/18386/6 "2021-02-15T08:37:26Z")

</div>

Yes, that what i was thinking about but i didn’t find a way to get the direction of my view to update my target position (i think it can be get by the beta)  
there is my button to move the camera : [Pasteboard - Uploaded Image](https://pasteboard.co/JOrreL5.png)

---

<div class="post-metadata">

**Author:** ![JohnK](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johnk/32/26764_2.png) [@JohnK](https://forum.babylonjs.com/u/JohnK)\
**Post date:** [February 16, 2021, 9:31am UTC](https://forum.babylonjs.com/t/is-it-possible-to-move-forward-an-arcrotatecamera/18386/7 "2021-02-16T09:31:23Z")

</div>

> [@MizuMar0](#):
>
> i didn’t find a way to get the direction of my view to update my target position

One way [https://www.babylonjs-playground.com/#IA7LXQ#12](https://www.babylonjs-playground.com/#IA7LXQ#12)

---

<div class="post-metadata">

**Author:** ![MizuMar0](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mizumar0/32/14354_2.png) [@MizuMar0](https://forum.babylonjs.com/u/MizuMar0)\
**Post date:** [February 16, 2021, 11:09am UTC](https://forum.babylonjs.com/t/is-it-possible-to-move-forward-an-arcrotatecamera/18386/8 "2021-02-16T11:09:29Z")

</div>

That’s the behavior i tried to do !  
Thanks, i just have to block the Y axis to not move on it.
