Step by step procedure to load a shape in torque engine..
by Manikandan · in Torque Game Engine · 09/11/2007 (3:55 am) · 1 replies
Hi.....all...
Thanx Mr. Tim Heldna...ur reply is much more useful to me...can u send the step by step procedure to load a shpe in to the torque engine....
* I have one dts file which exported from 3dsMax9 i want to know where to place this file and
how many folders i have to create and how many .cs files i have to create ...and how to run those files finally...
please send ur description in step by step manner....
Thanks in advance...
Thanx Mr. Tim Heldna...ur reply is much more useful to me...can u send the step by step procedure to load a shpe in to the torque engine....
* I have one dts file which exported from 3dsMax9 i want to know where to place this file and
how many folders i have to create and how many .cs files i have to create ...and how to run those files finally...
please send ur description in step by step manner....
Thanks in advance...
Torque Owner Tim Heldna
datablock StaticShapeData(yourShape) { shapeFile = "~/data/shapes/yourFolder/yourShape.dts"; }; function spawnShape() { // Create a new shape (placed at center of world) %shape = new StaticShape() { dataBlock = yourShape; }; %shape.setTransform("0 0 300 1 0 0 0"); MissionCleanup.add(%shape); }exec("./shapeTest.cs");[li]Now call the spawnShape() function from wherever you need to, or just type it into the console.