# How to make Y-axis of the model is aligned with 0,0,0 in the negative direction?

**URL:** <https://forum.babylonjs.com/t/how-to-make-y-axis-of-the-model-is-aligned-with-0-0-0-in-the-negative-direction/21499>\
**Category:** Questions\
**Created:** [June 8, 2021, 3:09am UTC](https://forum.babylonjs.com/t/how-to-make-y-axis-of-the-model-is-aligned-with-0-0-0-in-the-negative-direction/21499 "2021-06-08T03:09:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![musk](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/musk/32/17156_2.png) [@musk](https://forum.babylonjs.com/u/musk)\
**Post date:** [June 8, 2021, 3:09am UTC](https://forum.babylonjs.com/t/how-to-make-y-axis-of-the-model-is-aligned-with-0-0-0-in-the-negative-direction/21499/1 "2021-06-08T03:09:07Z")

</div>

Hi All, I’m trying to show the model with latitude and longitude data in 3D,

The coordinate transformation I use comes from here:

> [@World latitude/longitude to scene Vector3 conversion](https://forum.babylonjs.com/t/world-latitude-longitude-to-scene-vector3-conversion/16515):
>
> I want to place 3d objects to a sphere(planet). I have the real latitude/longitude coordinates to which I want to place my 3d objects, but I need their babylonJS Vector3 representation. How can I do that? I think there are also many other people looking at a solution to this problem. I was unable to find any demo/code to convert both ways: babylonJS coordinates of a point at a sphere to latitude/longitude(real world GPS coordinates) Basically I need an implementation to LocationService inte…

I think the model should be perpendicular to the surface of the “earth”. So the negative axis of the Y axis should point to 0,0,0

---

<div class="post-metadata">

**Author:** ![musk](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/musk/32/17156_2.png) [@musk](https://forum.babylonjs.com/u/musk)\
**Post date:** [June 8, 2021, 3:30am UTC](https://forum.babylonjs.com/t/how-to-make-y-axis-of-the-model-is-aligned-with-0-0-0-in-the-negative-direction/21499/2 "2021-06-08T03:30:34Z")

</div>

I find this doesn’t seem right. My camera won’t be able to rotate parallel to the surface of the “earth”.So how to display the model with latitude and longitude data in the correct position on the ground ？

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [June 8, 2021, 8:43am UTC](https://forum.babylonjs.com/t/how-to-make-y-axis-of-the-model-is-aligned-with-0-0-0-in-the-negative-direction/21499/3 "2021-06-08T08:43:46Z")

</div>

I think you should provide a simple repro in the Playground, it will be easier to help.

Also, it seems they found a solution in the thread you linked, what does not work for you?

---

<div class="post-metadata">

**Author:** ![musk](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/musk/32/17156_2.png) [@musk](https://forum.babylonjs.com/u/musk)\
**Post date:** [June 8, 2021, 10:47am UTC](https://forum.babylonjs.com/t/how-to-make-y-axis-of-the-model-is-aligned-with-0-0-0-in-the-negative-direction/21499/4 "2021-06-08T10:47:59Z")

</div>

Hi Popov.Hope I can describe it clearly.My coordinates are very close. After transformation, they are all the same value.  
[https://www.babylonjs-playground.com/#LIRF98](https://www.babylonjs-playground.com/#LIRF98)  
I’m going to draw a line on the plane like this.But what i got was high precision latitude and longitude.

 ![20210608183625](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/0/3/0395888f3c22317fb4b7771853491e8444e70a42.jpeg)

These coordinates come from here:

https://maps.google.com/maps?ll=33.5929372,130.3593577&z=17&output=embed&dg=ntvb&q=33%C2%B035%2738.8%22N%2B130%C2%B021%2735.8%22E

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [June 8, 2021, 11:34am UTC](https://forum.babylonjs.com/t/how-to-make-y-axis-of-the-model-is-aligned-with-0-0-0-in-the-negative-direction/21499/5 "2021-06-08T11:34:40Z")

</div>

They are not the same, they differ at some decimals. But you need to zoom a lot if you want to see something. In this PG I tried to use real values, meaning 6371 for the earth radius and scaling everything to this same level:

[https://www.babylonjs-playground.com/#LIRF98#1](https://www.babylonjs-playground.com/#LIRF98#1)

The red dots are 1m diameter.

---

<div class="post-metadata">

**Author:** ![musk](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/musk/32/17156_2.png) [@musk](https://forum.babylonjs.com/u/musk)\
**Post date:** [June 8, 2021, 12:11pm UTC](https://forum.babylonjs.com/t/how-to-make-y-axis-of-the-model-is-aligned-with-0-0-0-in-the-negative-direction/21499/6 "2021-06-08T12:11:54Z")

</div>

I see. one more thing. How can I rotate camera as usual on the ground? Is it just need to rotate this area to the top ?

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [June 8, 2021, 2:24pm UTC](https://forum.babylonjs.com/t/how-to-make-y-axis-of-the-model-is-aligned-with-0-0-0-in-the-negative-direction/21499/7 "2021-06-08T14:24:29Z")

</div>

I’m not sure to understand, but maybe the arc rotate camera is not the best in this case, if you want to move freely on the surface of the sphere.

---

<div class="post-metadata">

**Author:** ![musk](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/musk/32/17156_2.png) [@musk](https://forum.babylonjs.com/u/musk)\
**Post date:** [June 10, 2021, 2:22am UTC](https://forum.babylonjs.com/t/how-to-make-y-axis-of-the-model-is-aligned-with-0-0-0-in-the-negative-direction/21499/8 "2021-06-10T02:22:20Z")

</div>

Yes, I guess if my earth is big enough, those points can look like on a plane .Then I can create a new ground on the intersection of sphere and Y axis . parallel to the X axis and Z axis .Set the arc rotate camera’s target point on the ground . Now I have a problem, how to make a point of the sphere rotate to the Y axis? like this:

 ![微信图片_20210610101825](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/2/1/21e08161bd6a14020e738e5360bfef1ca0508d2c.png)
