Here的代码翻译为简体中文:
kode:
Outlined below is a method triggered by collision, adjusting the impulse used for deformation based on certain conditions:
- impulse is calculated and divided by 10,000(假设是一个非常小的LAGRANGE值)。
- 如果 impulse 与 MinimumDeformationImpulse 的值小于,impulse 设置为 0。
- 如果 impulse 大于 10,impulsesetWidth为 10。
- 如果 impulse 大于 0:
- 清除 repairState,设置为被修复的状态。
- 清除 deformState,设置为冲形状。
- 创建.contact点用于确定 Objectswhere需要进行变形。
- 如果 meshFilters 不为null,且长度大于 1,请调用 DamageMesh 以添加.impulse XML。
- 最 recentProcessedVertexCount 设为 0。
Code原文中的contact point用于找到对象所处位置以便于调整形状。
在应对方时,我很乐意接受 farm游戏中田展新树发 oficial ideas[deformation ideas]。如今田展 Ihren-current_GAP我计划保留为 flat Plane,若需要,你可以升级为立方形或矩形形状。请会问。
评论 (0)