Github copilot and BabylonJS

Hi friends!
Does anyone use GH Copilot? I’m using it for two weeks now and it started to scare me. :rofl: I didn’t want to write about it, but a few minutes ago it has deducted from a while loop and a for loop and variable names that I want to create a raymarching algorithm and created a perfect one for me using my variables and BabylonJS constructs. It even grabbed my private variable _cameraDirection which is set in an another method and it knew that it’s the direction I want to march… As an addition it has scaled down the direction by 0.1 as I wanted to make 10 steps max.

:see_no_evil: :hear_no_evil: :speak_no_evil:


Yup it is scary and I do have to admit I love it :slight_smile:


I use it and I have a lot of speechless moments where my brain is like “Dude! this is magic or what??”


Look at this one :smiley:

I am creating marker objects in the loop and I decided to dispose all of them before entering the loop. Look at this smart bastard as I started to type it exactly knew what I am up to!!

First step:

Second step:

What? :smiley: