# How can I match the icon's direction of spotLight's lightGizmo in rightHandedSystem?

**URL:** <https://forum.babylonjs.com/t/how-can-i-match-the-icons-direction-of-spotlights-lightgizmo-in-righthandedsystem/42929>\
**Category:** Questions\
**Tags:** gizmo, light\
**Created:** [August 2, 2023, 5:16am UTC](https://forum.babylonjs.com/t/how-can-i-match-the-icons-direction-of-spotlights-lightgizmo-in-righthandedsystem/42929 "2023-08-02T05:16:13Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![UNIT](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/unit/32/24065_2.png) [@UNIT](https://forum.babylonjs.com/u/UNIT)\
**Post date:** [August 2, 2023, 5:16am UTC](https://forum.babylonjs.com/t/how-can-i-match-the-icons-direction-of-spotlights-lightgizmo-in-righthandedsystem/42929/1 "2023-08-02T05:16:13Z")

</div>

Hi 🙂

I’m using rightHandedSystem in my project. (can’t change this setting because of a few reasons)

When I activate the lightGizmo of spotLIght and rotate the light with rotationGizmo,

the icon of lightGizmo does not match spotLight’s direction.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/4/0/4043c3cde796fe984f747fcc19421b39d199160a.png)

The rightHandedSyetem must be the problem, but I don’t know how to match the direction.

Is that a bug or I missed something?

Here’s the playground.

Thanks in advance.

[https://playground.babylonjs.com/#48Z3YS](https://playground.babylonjs.com/#48Z3YS)

---

<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:** [August 2, 2023, 8:49am UTC](https://forum.babylonjs.com/t/how-can-i-match-the-icons-direction-of-spotlights-lightgizmo-in-righthandedsystem/42929/2 "2023-08-02T08:49:42Z")

</div>

It looks like a bug to me, cc @Cedric who will know for sure.

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [August 2, 2023, 8:52am UTC](https://forum.babylonjs.com/t/how-can-i-match-the-icons-direction-of-spotlights-lightgizmo-in-righthandedsystem/42929/3 "2023-08-02T08:52:51Z")

</div>

I think I have a ‘hack’. Not sure I recommend this but still, here it is. It’s basically about making a manual conversion from left-handed to right-handed. I suppose it works but I agree is not very ‘sexy’

> **[Babylon.js Playground](https://playground.babylonjs.com/#48Z3YS%232)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [August 2, 2023, 8:52am UTC](https://forum.babylonjs.com/t/how-can-i-match-the-icons-direction-of-spotlights-lightgizmo-in-righthandedsystem/42929/4 "2023-08-02T08:52:57Z")

</div>

Yes! Looks like a bug to me! I’m adding this to my todo list!

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [August 2, 2023, 8:54am UTC](https://forum.babylonjs.com/t/how-can-i-match-the-icons-direction-of-spotlights-lightgizmo-in-righthandedsystem/42929/5 "2023-08-02T08:54:01Z")

</div>

Assigned @Cedric on August 2, 2023, 8:54am UTC



---

<div class="post-metadata">

**Author:** ![UNIT](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/unit/32/24065_2.png) [@UNIT](https://forum.babylonjs.com/u/UNIT)\
**Post date:** [August 3, 2023, 4:54am UTC](https://forum.babylonjs.com/t/how-can-i-match-the-icons-direction-of-spotlights-lightgizmo-in-righthandedsystem/42929/6 "2023-08-03T04:54:49Z")

</div>

Thank you for checking it out 😄

---

<div class="post-metadata">

**Author:** ![UNIT](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/unit/32/24065_2.png) [@UNIT](https://forum.babylonjs.com/u/UNIT)\
**Post date:** [August 3, 2023, 4:55am UTC](https://forum.babylonjs.com/t/how-can-i-match-the-icons-direction-of-spotlights-lightgizmo-in-righthandedsystem/42929/7 "2023-08-03T04:55:36Z")

</div>

I’ll have to do it like this for now  
Thanks for the idea 👍

---

<div class="post-metadata">

**Author:** ![UNIT](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/unit/32/24065_2.png) [@UNIT](https://forum.babylonjs.com/u/UNIT)\
**Post date:** [August 3, 2023, 4:55am UTC](https://forum.babylonjs.com/t/how-can-i-match-the-icons-direction-of-spotlights-lightgizmo-in-righthandedsystem/42929/8 "2023-08-03T04:55:53Z")

</div>

Always Thank you~

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [August 3, 2023, 6:56am UTC](https://forum.babylonjs.com/t/how-can-i-match-the-icons-direction-of-spotlights-lightgizmo-in-righthandedsystem/42929/9 "2023-08-03T06:56:36Z")

</div>

> [@UNIT](#):
>
> do it like this for now

If I was you, I would just wait for the fix. Shouldn’t be all too long. Work on some other part until then. Else, you’ll have to undo everything once it’s updated. Of course, your choice and have a great day 🕶

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [August 3, 2023, 2:27pm UTC](https://forum.babylonjs.com/t/how-can-i-match-the-icons-direction-of-spotlights-lightgizmo-in-righthandedsystem/42929/10 "2023-08-03T14:27:50Z")

</div>

> <https://github.com/BabylonJS/Babylon.js/pull/14118>

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [September 18, 2023, 1:51pm UTC](https://forum.babylonjs.com/t/how-can-i-match-the-icons-direction-of-spotlights-lightgizmo-in-righthandedsystem/42929/11 "2023-09-18T13:51:44Z")

</div>

Unassigned @Cedric on September 18, 2023, 1:51pm UTC


