Vehicle Damage Set Up
by Brandon Bittner · in Artist Corner · 09/21/2008 (5:59 pm) · 2 replies
Hello Everyone,
I'm very new to using the Torque Game Engine and have been working briefly trying to set up a "demolition derby" style game. I have been working on the modeling and getting the assets into the engine and was wondering if it's possible to make destructible vehicles for the engine. Nothing too fancy, but similar to how GTA operates; different pieces wrinkling and then falling off when they're hit enough times. I'm not very good with the coding aspect of things so it might be over my head, but I was more concerned as to whether or not it was possible at all. Any info would be appreciated.
Thanks,
Brandon
I'm very new to using the Torque Game Engine and have been working briefly trying to set up a "demolition derby" style game. I have been working on the modeling and getting the assets into the engine and was wondering if it's possible to make destructible vehicles for the engine. Nothing too fancy, but similar to how GTA operates; different pieces wrinkling and then falling off when they're hit enough times. I'm not very good with the coding aspect of things so it might be over my head, but I was more concerned as to whether or not it was possible at all. Any info would be appreciated.
Thanks,
Brandon
#2
-Brandon
09/22/2008 (6:55 pm)
Thanks very much for the info Ron. Sadly, I'm not much of a coder, but I suspected it would require a lot of work in that area. It's good to know that it is achievable though. I've got a long way and a lot of work ahead of me.-Brandon
Torque Owner Ronald J Nelson
Code Hammer Games
My team has done it, but it required a considerable amount of changes. First you will want locational damage to detect what area was hit. You will need some sort of hitbox system for that, look around there are a few resources on that.
Next to show scrapes and such you might want to add texture layers, depending on if you are using TGE or TGEA there are diffferent resources for that as well.
Now the method for actually crushing the meshes is up to you.
The different methods would be interchanging meshes( having sever damage layers on the vehicle and settng the visible ones as appropriate) which is a pretty common method. Then there would be setting animation states which as I recall there is a limit on how many vehicls can use so you would have to cheange that as well. LAst creating your own(because there really isn't one I know of) deformation system that modifies vertice location based upon locational contact.
Best of luck to you.