I have cubes sitting around i want them to fly around wen i make some thing explode. How would you do that?
Bikebreck
I have cubes sitting around i want them to fly around wen i make some thing explode. How would you do that?
Bikebreck
You can use physics. Instantiate an object with a sphere collider trigger, possibly expanding, at the center of the explosion. Use OnTriggerEnter/Stay to add a force to all rigidbodies within its area for as long as the blast exists. That’ll send 'em flying.
Take a look at Rigidbody.AddExplosionForce.