# Backwards compatibility broken in showWorldAxis example

**URL:** <https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039>\
**Category:** Bugs\
**Created:** [January 24, 2022, 7:55am UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039 "2022-01-24T07:55:02Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [January 24, 2022, 7:55am UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039/1 "2022-01-24T07:55:02Z")

</div>

Hi!

Backwards compatibility was broken in the `CreateLines` function. I know, that it is now deprecated but many of the existing PG’s uses the `showWorldAxis` example which uses the deprecated `Mesh.CreateLines` function from the docs as follows:

```auto
        const axisX = BABYLON.Mesh.CreateLines("axisX", [
            BABYLON.Vector3.Zero(), new BABYLON.Vector3(size, 0, 0), new BABYLON.Vector3(size * 0.95, 0.05 * size, 0),
            new BABYLON.Vector3(size, 0, 0), new BABYLON.Vector3(size * 0.95, -0.05 * size, 0)
        ], scene);

```

Now the `CreateLines` function requires a fourth parameter `updatable`. Are we going to fix this so the old PG’s are working? I can create a PR. All we need is to default the value of `updatable` to `false/true`.

Thank you!

---

<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:** [January 24, 2022, 11:25am UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039/2 "2022-01-24T11:25:33Z")

</div>

Many of the PGs using `showWorldAxis` do still work, e.g. [Babylon.js Playground](https://playground.babylonjs.com/#0720FC)

Please given an example of where it is no longer working v5 but was in v4.2.

> [@roland](#):
>
> Now the `CreateLines` function requires a fourth parameter `updatable` . Are we going to fix this so the old PG’s are working? I can create a PR. All we need is to default the value of `updatable` to `false/true` .

`CreateLines` always has had a fourth option of updatable as from v3.1 below

```javascript
Mesh.CreateLines = function (name, points, scene, updatable, instance) {
            if (scene === void 0) { scene = null; }
            if (updatable === void 0) { updatable = false; }
            if (instance === void 0) { instance = null; }
            var options = {
                points: points,
                updatable: updatable,
                instance: instance
            };
            return BABYLON.MeshBuilder.CreateLines(name, options, scene);
        };

```

Not sure why it is not working in some cases.

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [January 24, 2022, 11:57am UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039/3 "2022-01-24T11:57:02Z")

</div>

This one was definitely working when I created it back in August 2021:

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

I’ve discovered that it is not working after @necips recommended my PG in this topic. Read two-three messages below as well please:  
[https://forum.babylonjs.com/t/hologram-effect/26988/23](https://forum.babylonjs.com/t/hologram-effect/26988/23)

Thank you!

---

<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:** [January 24, 2022, 12:24pm UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039/4 "2022-01-24T12:24:54Z")

</div>

I understand - it is a Typescript issue, in Javascript all parameters are optional. You get the same problem going back to v3.3 in the playground but the PG did not report what the issue is in the older version. For Typescript you would need to make the updatable parameter optional just using a ? or as you say giving the parameter an explicit default value.

Pinging @sebavan to have a look at your PR idea.

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [January 24, 2022, 12:28pm UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039/5 "2022-01-24T12:28:33Z")

</div>

Yep, it is a typescript feature of a deprecated function.  
I’ll fix that soon

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [January 24, 2022, 12:45pm UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039/6 "2022-01-24T12:45:12Z")

</div>

[CreateLines updatable is optional by RaananW · Pull Request #11830 · BabylonJS/Babylon.js (github.com)](https://github.com/BabylonJS/Babylon.js/pull/11830)

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [January 24, 2022, 1:13pm UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039/7 "2022-01-24T13:13:11Z")

</div>

Thank you! Actually I am trying to achieve the Great Contributor title 😛 that’s why I proposed that I will make the PR. Never mind, next time 🙂

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [January 24, 2022, 1:22pm UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039/8 "2022-01-24T13:22:19Z")

</div>

AAAAHHHHHHHH

sorry…

I promise not to fix it next time 🙂

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [January 24, 2022, 1:25pm UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039/9 "2022-01-24T13:25:37Z")

</div>

No worries! 🙂

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [January 24, 2022, 1:43pm UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039/10 "2022-01-24T13:43:21Z")

</div>

Do you guys count contributions to the source code only or to the docs as well?

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [January 24, 2022, 2:49pm UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039/11 "2022-01-24T14:49:03Z")

</div>

No idea 🙂 maybe @carolhmj who is amazing with the forum config can check ?

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [January 24, 2022, 2:55pm UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039/12 "2022-01-24T14:55:24Z")

</div>

Don’t want to look childish, but my boss promised me a raise everytime I get better in BabylonJS (EDIT: outside of work hours) and he said higher reputation on the forum counts as well 😛 But to be honest I am childish and I’d like a title next to my username 😃 😃 😃 And I love to code in BJS as well!

🖖

Thank you!

r.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [January 24, 2022, 3:02pm UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039/13 "2022-01-24T15:02:48Z")

</div>

You can tell him to ask in the community and if your raise is on par with the help you provide here you you can book a sabbatical year of vacation without any issues 😉

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [January 24, 2022, 3:06pm UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039/14 "2022-01-24T15:06:38Z")

</div>

Your words means a lot to me and I feel in Seventh Heaven now!! Thank you very much!! 🥰

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [January 24, 2022, 4:27pm UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039/15 "2022-01-24T16:27:40Z")

</div>

I can vet you anytime buddy. Simply ask!

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [January 24, 2022, 5:41pm UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039/16 "2022-01-24T17:41:54Z")

</div>

David thank you very much! 😻 😻 😻 I must earn the reputation and respect step by step! It makes me happy to help the lost souls here as much as I can and share the knowledge as you guys do! I appreciate your support a lot!

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [January 24, 2022, 11:23pm UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039/17 "2022-01-24T23:23:48Z")

</div>

I took a look at the Github plugin, it counts only the main Babylon repo… I wouldn’t be opposed to adding all the other repos on the Babylon organization there 🙂 @Deltakosh what do you think?

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [January 25, 2022, 6:21am UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039/18 "2022-01-25T06:21:19Z")

</div>

Hi @carolhmj !  
Since I added the Edit on GitHub button to every doc page it is very easy to make small changes on the fly and I fixed several typos and small errors in the provided examples/playgrounds while I was reading the docs and I believe those PRs are not worth of earning the Great Contributor title for me nor for anyone else.

Creating new content in the docs is however another story.

Sharing own source code to the community should count as well. Creating PG’s which are liked by the community should count too. Contributing to the assets library, discoverring bugs, helping on the forums, accepted solutions etc. as well. I think these are the signs of a good BabylonJS contributor 🖖 These ones should raise the contribution count by a smaller factor than contributing to the main source code repository.

Sharing is caring! 🙂

However it’s unlikely that someone is going to write an algorithm which could rightfuly decide when to raise the reputation in these cases.

I was trying to find some issues in the BabylonJS repo which I could solve but they are mostly assigned just right after they are created or are so old that it’s clear that no one is willing to solve them 😃

So basically I couldn’t find anything serious (but not too serious 😃 ) to contribute to so I joined @labris (Hi Dude!) and started to contribute to YUKA ([Yuka | A JavaScript library for developing Game AI](https://mugen87.github.io/yuka/)) and we are creating BabylonJS examples for it.

To be honest we all have much more important things in our lives than this so don’t take my words too seriously 🙄

If anyone thinks I am doing this for a raise (anyway my boss is counting it only starting this year) he/she is wrong. BabylonJS is amazing and finally I can code software which reminds me of my childhood when I was creating demos just for fun. And coding using BabylonJS is endless fun and joy for me!

Thank you!

r.

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [January 25, 2022, 11:56am UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039/19 "2022-01-25T11:56:05Z")

</div>

I’m always glad to hear how enthusiastic you are for Babylon! ❤

> Sharing own source code to the community should count as well. Creating PG’s which are liked by the community should count too. Contributing to the assets library, discoverring bugs, helping on the forums, accepted solutions etc. as well. I think these are the signs of a good BabylonJS contributor 🖖 These ones should raise the contribution count by a smaller factor than contributing to the main source code repository.

We can also create new badges for the forum (yay collecting shiny stuff!) so maybe a “Sharing is caring” set of badges would be cool! 😃

> I was trying to find some issues in the BabylonJS repo which I could solve but they are mostly assigned just right after they are created or are so old that it’s clear that no one is willing to solve them

That is a good observation, thank you for that. @PirateJC I think we can be doing a better job of tagging issues with the “good first issue” tag on Github. Maybe some of the improvements on the GUI Editor/Performance Profiler/ACE?

> So basically I couldn’t find anything serious (but not too serious 😃 ) to contribute to so I joined @labris (Hi Dude!) and started to contribute to YUKA ([Yuka | A JavaScript library for developing Game AI](https://mugen87.github.io/yuka/)) and we are creating BabylonJS examples for it.

Woah, this is very cool, I can’t wait to see what you two rockstars make! 😃

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [January 25, 2022, 11:58am UTC](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039/20 "2022-01-25T11:58:06Z")

</div>

The first examples are already online - [Yuka | Examples with Babylon.js](https://yuka.babylonpress.org/examples/) and we continue!

[Next page](https://forum.babylonjs.com/t/backwards-compatibility-broken-in-showworldaxis-example/27039.md?page=2)
