Need help setting Face UVs for box

Probably a simple solution, but I have set up the face UVs for a box, so that the square texture can tile without stretching, no matter the width/height/depth of the box. But the problem is, I want the texture to always face ‘up’ on the ‘sides’ of the cube, see here:

https://www.babylonjs-playground.com/#L7AS3S#10

edit: I fixed the ‘back’ side (setting the ‘w’ value for the UV at index 0). But the ‘left’ and ‘right’ sides still need to ‘face up’.

Does this help the tiled box? Create Set Shapes - Babylon.js Documentation

Oh wow, thats perfect, and I don’t need to re-invent the wheel either. Thanks

I’m using the latest version of BabylonJS, but I can’t seem to find the CreateTiledBox method in the MeshBuilder class

It is in the preview version 4.1.0 https://preview.babylonjs.com/babylon.max.js

Oh, got it. Thanks for the help!