ShapeVector Question
by Matt Kelly · in Torque Game Builder · 03/07/2006 (1:06 pm) · 3 replies
I would like to know if anyone could guide me on the process of using ShapeVectors. I've attempted to sift through the engine source and I believe I've found most of the parameters, but I still can't get any shapes to be drawn to the screen. Due to the age of the reference PDF, ShapeVector isn't included (which I can understand at this point).
Basically, all I'm asking for is a basic example using all or most of the parameters available with this object. Based on that, I think I can better understand the engine source as well as use the ShapeVector object.
Thanks!
Matt
Basically, all I'm asking for is a basic example using all or most of the parameters available with this object. Based on that, I think I can better understand the engine source as well as use the ShapeVector object.
Thanks!
Matt
#2
If you want to see all the parameters just create a vector with the level builder and save out the file.
03/08/2006 (6:30 am)
I'm not really sure what the problem is; I created a ShapeVector like this:%poly = new t2dShapeVector()
{
scenegraph = t2dscene;
vertexList = "-0.24 -0.56 -0.43 -0.26 -0.20 -0.00 0.29 0.03 0.33 -0.31 0.19 -0.62";
};If you want to see all the parameters just create a vector with the level builder and save out the file.
#3
In terms of sifting through the engine source, check for the objects in initPersistFields (for available parameters) and all of the ConsoleMethods for the functions you can call on objects of that kind. All of these can be found in the corresponding CC file. I figured I would post that for other newbies and for future reference for myself.
Thanks to Magnus and Delerium on the irc channel for help with this
03/08/2006 (10:12 pm)
I've successfully made an elipse, also:%poly = new t2dShapeVector()
{
scenegraph = t2dscene;
fillMode = 0;
};
%poly.setPolyPrimitive(40);
%poly.setPolyScale("0.2 0.1");In terms of sifting through the engine source, check for the objects in initPersistFields (for available parameters) and all of the ConsoleMethods for the functions you can call on objects of that kind. All of these can be found in the corresponding CC file. I figured I would post that for other newbies and for future reference for myself.
Thanks to Magnus and Delerium on the irc channel for help with this
Associate Anthony Rosenbaum