Answers for "explosion godot"

Go
0

explosion godot

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)"
Posted by: Guest on July-23-2020

Browse Popular Code Answers by Language