Change appearance of motionpath debug?

Hi guys. I’m looking to change the appearance of the debug shape. I need a simple path highlight on the floor? Is this possible with the debug shape, or if not, anyone know how I could highlight my path (google maps style) ? Regards

The debug shape is what it is…for debugging purpose. There is no easy way to change its aspect.
I recommend making your own mesh by using the way points coordinates. You’ll have full control on it and on its material

Ok thanks for the help, I’ve made some code that generates a line mesh :

[java]Mesh lineMesh = new Mesh();
lineMesh.setMode(Mesh.Mode.Lines);
lineMesh.setBuffer(VertexBuffer.Type.Position, 3, new float[]{0, 0, 0, 0, 1, 0});
lineMesh.setBuffer(VertexBuffer.Type.Index, 2, new short[]{0, 1});
lineGeometry = new Geometry(“line”, lineMesh);
Material lineMaterial = getAssetManager().loadMaterial(“red_color.j3m”);
lineGeometry.setMaterial(lineMaterial);
rootNode.attachChild(lineGeometry);[/java]

Any ideas how to set more than an A and B points (ie. if I want a line connecting multiple points?)

Thanks

@fl0shizzle said: Ok thanks for the help, I've made some code that generates a line mesh :

[java]Mesh lineMesh = new Mesh();
lineMesh.setMode(Mesh.Mode.Lines);
lineMesh.setBuffer(VertexBuffer.Type.Position, 3, new float[]{0, 0, 0, 0, 1, 0});
lineMesh.setBuffer(VertexBuffer.Type.Index, 2, new short[]{0, 1});
lineGeometry = new Geometry(“line”, lineMesh);
Material lineMaterial = getAssetManager().loadMaterial(“red_color.j3m”);
lineGeometry.setMaterial(lineMaterial);
rootNode.attachChild(lineGeometry);[/java]

Any ideas how to set more than an A and B points (ie. if I want a line connecting multiple points?)

Thanks

You could generate a custom mesh for each curve. Or you could use multiple line meshes, appropriately rotated scaled and translated.