donmccurdy / three-pathfinding

Navigation mesh utilities for three.js, based on PatrolJS.
https://three-pathfinding.donmccurdy.com/
MIT License
1.2k stars 135 forks source link

Modify the style of generated routes #234

Closed houjunlong666 closed 5 months ago

houjunlong666 commented 5 months ago

您好,请问改如何修改生成的路径的样式呢,我在PathfindingHelper.js这个文件里面修改了下图并没有生效

屏幕截图 2024-03-18 214649
donmccurdy commented 5 months ago

Hi! Note that linewidth is ignored on many devices. You may need to use other types of line rendering, like the three.js fat lines example. PathfindingHelper doesn't provide much customization or style, so I'd recommend copy/pasting it and changing whatever you need. :)