Cubism Modeler‎ > ‎Special Models‎ > ‎

02. Model With Collision Detection

    How to Set Collision Detection

To give a model the option of providing a reaction upon interaction, find a part of the texture file that has no artwork.

A corner of the texture file is usually clear of pixels, but it can be anywhere.
(The sample below shows a square polygon, but the shape is not important and can be made in any shape.)

Set the polygon where you want, and click OK.

Make sure the polygon is not set in a location where hidden parts will be stored, such as a change of clothes or switchable arms.
Place the newly created polygon into the [Core Parts] folder in the [Parts] palette tree view.

  Collision Detection ID

It is better to give each hit box it's own ID to avoid any confusion,
for example: the image below shows different options.

Interacting with the sample data's character is separated into two boxes:
head is set to [D_REF.HEAD]
body is set to [D_REF.BODY]

The [D_REF.] sets the ID of any hit box, and should be decided with consultation with the development team that will set the activities of the model in other apps. 

Using Viewer, you can see the collision detection hit boxes on the model.
The Drawing Object is named with a D_REF ID to distinguish it from other objects that contain drawn parts of the model.