根据碰撞速度在运行时为 Sprite 形状控制器添加视觉损伤

问题描述 投票:0回答:0

我如何根据与另一辆车的碰撞,根据它们各自的速度值,在运行时对使用 Sprite Shape Controller 创建的 2D 汽车进行可视化损坏?

我尝试使用 Sprite Shape Renderer 解决这个问题,但没有成功。我尝试将 Sprite Shape 转换为常规 Sprite,因为变形可以应用于 Sprites。但是,Sprite Shape 在运行时不会更新为 Sprite。

unity3d
© www.soinside.com 2019 - 2024. All rights reserved.