📌  相关文章
📜  爆炸 godot - Go 编程语言 - Go 编程语言代码示例

📅  最后修改于: 2022-03-11 14:45:02.413000             🧑  作者: Mango

代码示例1
I'm not an expert with 3D games, I focus mainly on 2D games, but I think this should work:
1. After exploding get all objects in the range of explosion
2. Cast a ray to each object in the sphere
3. If the raycast is sucessful and nothing is in the way apply force to the object in the direction from explosion and multiply it with "1-(distance to object)/(explosion range)"