激光组件说明文档
<p>[TOC]</p>
<table>
<thead>
<tr>
<th>作者</th>
<th>刘备(594682)</th>
</tr>
</thead>
<tbody>
<tr>
<td>更新日期</td>
<td>2025-1-20</td>
</tr>
<tr>
<td>版本</td>
<td>V1.0.0</td>
</tr>
</tbody>
</table>
<h1>功能说明</h1>
<p>该组件为激光组件,包含功能
1.激光外观控制(粗细、颜色)
2.激光反射
3.激光折射
4.同时支持反射和折射
5.支持丁达尔现象
6.支持显示激光与介质的表面法线
7.支持激光夹角显示</p>
<h1>使用说明</h1>
<h4>快速创建</h4>
<p>1.更新virtual-lab-unreal到最新即可
2.如果单独插件测试,则更新git地址: git@gitlab.ndaeweb.com:app-cpp/virtual-lab-unreal.git 分支develop
3.找到/Plugins/VLabGeneral/Content/Laser/BP_Laser.uasset 将蓝图放置到场景中即可</p>
<h4>主要参数说明</h4>
<p>整理后的变量名和功能如下:</p>
<ul>
<li><strong>InitialBeamColor</strong> = 初始激光束的颜色(介质外部)</li>
<li><strong>InitialBeamOpacity</strong> = 初始激光透明度</li>
<li><strong>ReflectedBeamColor</strong> = 反射光束的颜色(默认蓝色)</li>
<li><strong>InsideMediumBeamColor</strong> = 介质内部的激光束颜色</li>
<li><strong>bUseInitialColor</strong> = 使用初始光线的颜色</li>
<li><strong>InsideMediumOpacity</strong> = 介质内的透明度</li>
<li><strong>InitialBeamSize</strong> = 初始激光束的大小</li>
<li><strong>bDisplayHitRings</strong> = 是否显示光斑</li>
<li><strong>bDrawNormalVectors</strong> = 是否绘制法线向量</li>
<li><strong>NormalVectorColor</strong> = 法线向量的颜色</li>
<li><strong>NormalLineLength</strong> = 法线长度</li>
<li><strong>AngleTextSize</strong> = 角度文本的大小</li>
<li><strong>AngleTextColor</strong> = 角度文本的颜色</li>
<li><strong>AngleTextDistance</strong> = 角度文本距离顶点的距离</li>
<li><strong>bDisplayIncidentAngle</strong> = 是否显示入射角</li>
<li><strong>bDisplayRefractedAngle</strong> = 是否显示折射角</li>
<li><strong>bDisplayExitAngle</strong> = 是否显示出射角</li>
<li><strong>bDisplayInsideToExitNormalAngle</strong> = 是否显示介质内激光与出射法线的夹角
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=850f48cc7dfa60ae6f3e6023679cdecf&amp;file=file.png" alt="" />
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=7a1b111933f2055c93e95c56445d7f76&amp;file=file.png" alt="" /></li>
</ul>
<h4>效果演示</h4>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=27d9f99516ba55e74cb19b495d76351e&amp;file=file.png" alt="" />
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=0c8be7758c91af843933f7acf6db375d&amp;file=file.png" alt="" /></p>