物理容器组件
<p>[TOC]</p>
<table>
<thead>
<tr>
<th>作者</th>
<th>刘备(594682)</th>
</tr>
</thead>
<tbody>
<tr>
<td>更新日期</td>
<td>2025-3-5</td>
</tr>
<tr>
<td>版本</td>
<td>V1.0.0</td>
</tr>
</tbody>
</table>
<h1>组件说明</h1>
<p>物理容器组件
其核心功能是在容器里面模拟简单的物理,在不开启UE的物理模拟的情况下,也能模拟器材的物理表现和物理约束
子物体会在容器内有简单的物理模拟,如重力,惯性,弹性等,并且不会跑出容器</p>
<h1>1.创建容器</h1>
<h5>1.找到物理容器组件,添加到器材中</h5>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=f15f80f25ff1474a4fc8e8b8f6caba02&amp;file=file.png" alt="" />
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=58830dcacfd811b115b9b5c615399d48&amp;file=file.png" alt="" /></p>
<h5>2.根据参数调整容器大小</h5>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=3bb75fafbe9305f3c41c143f1648a225&amp;file=file.png" alt="" />
可以开启Show Debug Bounds运行后,查看容器大小
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=b36199d3cbf0531dcb9bdbdda736b4fe&amp;file=file.png" alt="" /></p>
<h5>3.添加测试固体药品</h5>
<p>1.添加药品有两种方式,通过蓝图连连看添加
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=66897d297bcaeb231829c6657039181f&amp;file=file.png" alt="" />
2.直接在容器里面添加测试药品的蓝图,并添加tag = "Phy"
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=1f7d4a59b8c3804e0cf828181f7c2afc&amp;file=file.png" alt="" />
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=cf84fdbec42a053013dc5c88ca1f11bb&amp;file=file.png" alt="" /></p>
<h5>4.代码添加</h5>
<p>略</p>
<h4>参数说明</h4>
<p>具体参数如下:
Container的参数组主要是用于设置容器类型,支持矩形、圆柱和锥形
Physics参数为物理和调试相关的参数,详细可以通过查看tips得到参数说明
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=83ab62c629cc101c70f98a58dafb53ae&amp;file=file.png" alt="" /></p>