2

I am trying to draw walking path lines using BabylonJS. I tried functions CreateLines and CreateDashedlines but am unable to increase the stroke size.

This video has the path which I have in my mind Walking path:(0.20)

Mel
  • 5,837
  • 10
  • 37
  • 42
raja babu
  • 21
  • 3

2 Answers2

1

Lines are usually not the right way to go if you want to control the line thickness. A line in BabylonJS always has the same radius. You can try using One of babylon's Parametric Shapes. A tube or a ribbon take a path (in 3D coordinates) and create a 3D shape out of it. You can find the documentation along with many examples here - http://doc.babylonjs.com/tutorials/Parametric_Shapes

Raanan W
  • 1,295
  • 7
  • 19
0

You can use CreateTube function for draw line, with collection of path. See this example:

http://www.babylonjs-playground.com/#165IV6#68

Darlan Dieterich
  • 2,369
  • 1
  • 27
  • 37