用面片或者粒子都可以,根据起点和终点算出中心点,再算出亮点的连线角度和长度,设置连线的角度和scale 写个update 或者定时器更新就可以了
https://gitee.com/yeshao2069/CocosCreatorDemos/tree/v3.5.x/demo/3d/Creator3.5.2_3D_LightningWhip