4

I am currently attempting to trace the path of an object in BabylonJS.

To do this I would like to draw a line between the existing location and the previous location.

The closest I've been able to come is a cube.

var plane = BABYLON.Mesh.CreatePlane("Plane", 50, scene);

Here is a link to one of the tutorials, but none of them talk about lines.

Does anyone know how to draw a line using BabylonJS?

Dan Grahn
  • 9,044
  • 4
  • 37
  • 74

2 Answers2

0

Lines aren't currently implemented in Babylonjs. The author suggests creating a triangle where you want the line. More here... http://www.html5gamedevs.com/topic/2235-draw-a-line/#entry15013

Michael
  • 726
  • 7
  • 18
  • 1
    This is funny. I was just about to answer this question. That thread is actually mine. Take a look at the screen names. – Dan Grahn Nov 21 '13 at 19:23