Still have to fix the odd flicker when the box is destroyed.
Physics are working nicely now and don't hit the phone too hard performance wise if there are only a few things being destroyed at once.
Friday, March 5, 2010
Still working on destructibles. Looking somewhat better now. The bodies of the debris objects are now properly synced with the original object but for some reason that I have yet to figure out, there is a frame in between the deletion of the original object and the creation of the debris objects where nothing is rendered. This obviously has to be fixed because it just looks bad.
Here is a better looking version of the destructible crate. If you look closely you can see that the debris objects aren't quite lined up with the original object. That's because I have to figure out how to rotate them to the same orientation as the object being destroyed. D'oh!
Adding support for destroyable objects that leave somewhat realistic debris around.
The video below shows a crude box being destroyed. There is no rendering of the debris objects yet, so I turned debug rendering on to show the collision objects that are created for the debris.