uffer, Jolt.getPointer(shapeSettings.mHeightSamples.data()), totalSize); // Convert the height samples into a Float32Array
				heightSamples.forEach((o, i) => {
					heightSamples[i] = imgData.data[i * 4]; // Reading only red channel for height
					if (imgData.data[i * 4 + 3] == 0)
						heightSamples[i] = Jolt.HeightFieldShapeConstantValues.prototype.cNoCollisionValue; // Invisible pixels make holes
				});
				let shape = shapeSettings.Create().Get();

				// Create the body
				const position = new Jolt