[Unity]弹跳物体
这一次,我想反弹这个物体。
如下图所示,准备一个立方体并应用红色材质。








为准备好的立方体添加物理 > 刚体组件。


然后右键单击 “项目”,选择 “创建 > 物理材料”。

这次我们将物理材料命名为 “绑定”。
接下来,在选中该绑定后,将检查器的 “弹跳度 “设置为 1。1 似乎是最大值。


弹跳度 “设置完成后,选择红色立方体,将绑定拖放到 “检查器 “中,应用如下。

现在,当您按下播放键时,红色立方体会向下掉落,并在落地时反弹。