The USSFC is losing hope and losing the war, but the poorly equipped Legion are losing soldiers fast. This is the desperate last struggle of two clashing armies... This is Crimson Crow.

Report article RSS Feed Torqials #1 - Multiple Collision Boxes

The first of maybe many Torque Tutorials - Torqials - to help Torque developers get on the right track. This helps 3Ds max users add multiple collision boxes to a single DTS model.

Posted by ninjadave on Mar 30th, 2010
Intermediate Props Modelling.

The first of maybe many Torque Tutorials - Torqials - to help Torque developers get on the right track.
This helps 3Ds max users add multiple collision boxes to a single DTS model for Torque Game Engine Advanced. (But should work with Torque 3D and Torque Game Engine classic.)
I'm writing this tutorial because I could not find the answer, and after much experimenting, finally got the system to work and decided to write my own tutorial.

This tutorial will assume you know the basics of 3Ds max (I'm using 3Ds max 10) and have the DTS exporter already installed. (If not, suggest I write a tutorial on how to install it!)

1. First off, start with basic one-piece prop model to try.
2. Add your first collision box, which is literally a box. You can make it whatever shape you like except anything that is CONCAVE. (Something like an open laptop would require two blocks, and not a bent single block.) Name that block "col-1" without the quotes.
3. Repeat new blocks naming them a number higher than the previous. So "col-2" without the quotes is the next collision box.
4. For every collision box you add, make a dummy helper named "collision-X", without the quotes and the X being the corresponding number.
5. Don't forget to add the 'bounds'. If you don't know what that is, it is just a simple block with the name "bounds" (Without quotes). This goes around the prop model when finished.

Confusing? Its ok, I made a picture:
(Top being the pieces separate, bottom being a more completed model.)

(Not to throw you off, but the picture is slightly wrong. Nothing should be capitalized. I don't know if this changes anything but lets not risk it.)

Now the hierarchy set-up. This is a very crucial set-up, and must be done perfectly. Its ok, I got a picture for it too.
First click the model and set-up the basics in the DTS exporter tool (Embed Shape).
Open up 'Schematic View', which has a block with an arrow that points to another block. (A tool I couldn't find for a long time.)

You'll connect col-1, col-2, ect to start01. If you forget, the colors match. The bluish purple blocks connect to the same green one the model is attached to. (In my case chimney2.)
Connect collision-1 and collision-2, and any others to base01.

Here is an example picture of my set-up:

This is not covering the specifics of details. So right now we can export this simple right to the game!
Please don't mind how ugly this next picture is! (All test items!)

Thanks for reading!

Post comment Comments
azultain Mar 31 2010 says:

so complex for me, it is c++?

-1 votes     reply to comment
eXeC64 Mar 31 2010 replied:

Looking at the sheer lack of source code of ANY kind I'd say no.

Judging by the category it was posted under I'd say this is a tutorial for using the advanced features of the Torque game engine.

+1 vote     reply to comment
ninjadave Author
ninjadave Mar 31 2010 replied:

Yes - No C++ code involved!

I did list this as an intermediate tutorial since it requires some knowledge of 3Ds max, the DTS exporter, and a little of Torque itself.

+1 vote   reply to comment
evan0605 Mar 31 2010 says:

that's why my studio and I are using Unity. Very good tutorial and post.

+1 vote     reply to comment
ninjadave Author
ninjadave Mar 31 2010 replied:

Torque isn't bad, but I do feel its poorly documented for some very specific things.
I'll write plenty more tutorials for the more complex things later.

+2 votes   reply to comment
najeebshah Aug 1 2010 says:

ninjadave are you majindave from zeq2lite ? also is there any one a coder and a dbz fan if u think what it taked to join clik it

+1 vote     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Crimson Crow
Send Message
Official Page
Release Date
Game Watch
Track this game
Report Abuse
Report article
Related Games
Crimson Crow
Crimson Crow Tactical Shooter
Related Engines
Chrome Engine 4
Chrome Engine 4 Commercial Released 2009
Torque 3D
Torque 3D MIT Released 2009
Torque Game Engine
Torque Game Engine Commercial Released 2006
Related Groups
Garage Games
Garage Games Developer & Publisher with 3 members
Indie Devs
Indie Devs Hobbies & Interests with 1,247 members
Round House Studios
Round House Studios Developer with 2 members