Game Development Community

Problem with Animate StaticShape Object

by Allan Bregas Sentausa · in Torque Developer Network · 06/25/2012 (8:19 pm) · 2 replies

hello, I am new on Torque 3d and now still progress with one project using this engine (FYI, I'm mobile developer too(iOS)). First, I have an 3d object that given to me from our artist using 3dsMax 2012. Then I export it to COLLADA using openCOLLADA. Material, ok, Mesh, ok, sequence, only 1 per object. The problem is, I try to animate an object (StaticShapeData or TSStatic Object) but It always failed. I don't know where is my fault since I think this is right after all..

I create an datablock for my object

datablock StaticShapeData(apibox_shape_data)
{
   shapeFile = "art/shapes/assets/Api_Box.DAE";
   cameraMaxDist = "1.31638";
};

then I call it on trigger using this function

..............
..............
%obj.setActionThread("ambient");
.............
.............

I follow tutorial from thread below, but has nothing, still dont know what happen here... :(

http://www.garagegames.com/community/forums/viewthread/68038
http://www.garagegames.com/community/forums/viewthread/63235


ah, another question, is there important to export dts and dsq file for animate object..? :-

#1
06/26/2012 (3:32 am)
None of the threads you linked use setActionThread, instead they use playThread. I might be wrong but i think setActionThread is specific for the playerObject? Not that much in to animations etc so i'm probably wrong. But try use playThread instead!
#2
06/28/2012 (12:16 am)
ah yeah, I figure it out yesterday. This is new platform that I have to learn fast for few project but I couldn't find a 'complete' documentation. Then, I use playThread to play static object. anyway, thank for your answer.... :)