Game Development Community

Static shape Collison?

by frostwind · in Torque 3D Beginner · 09/27/2013 (12:37 pm) · 1 replies

datablock StaticShapeData(BasicShapeData)
{
shapeFile = "base/shapes/testshape.dts"
};

new StaticShape()
{
dataBlock = "BasicShapeData";
position = "0 0 0";
rotation = "1 0 0 0";
scale = "1 1 1";
};

How can I make my shape have a collision box?

#1
09/27/2013 (3:01 pm)
Model it with one. See the documentation under Artist Guide for how to structure your model for use in Torque 3D.

Also, see the documentation block for StaticShape in source/T3D/staticShape.cpp:
"Since ShapeBase and ShapeBaseData are not meant to be instantiated in script, you "
	"will use one of its child classes instead. Several game related objects are derived "
	"from ShapeBase: Player, Vehicle, Item, and so on.\n\n"