Add x,y,z label for AxesViewer

Dear developers, could you consider add AxesViewer a character label like this one?

for example, when we set

    const axes = new BABYLON.AxesViewer(scene, 4)
    axes.showAxesLabel=true 

Then I can see x, y, z at the end of axes arrows

This could be an awesome first contrib, would you be willing to give it a shot ?

2 Likes

Sure, let me try this :smiley:

3 Likes

Hi.
I’m trying to use BABYLON.AxesViewer with Typescript. But can’t find it.

Please check this screenshot.
Axis

Thanks a lot for the proposal, I think it’d be VERY useful.

It is available under BABYLON.Debug.AxesViewer

Thanks @sebavan .

Is it supposed to be different from javascript vs typescript? Am I missing something.

Thanks for your help.

AxesViewer is only exposed in the Debug namespace but for some old back compat with JS, we expose it as well to the main namespace.

@PirateJC I guess the doc could be changed here to prevent any confusion.

2 Likes