Game Development Community

Chap 3 , page 110, item 7

by Robert J Smolenski · in Torque Game Engine · 11/04/2004 (9:06 am) · 1 replies

Chap 3 , page 110, item 7 says to type $tt = Inserttestshape();

what does the var tt represent???

thanks

#1
11/06/2004 (4:33 am)
I'm just going through this bit of the book as well. The way I understand it is this. If you look back over the code in the moveshape.cs you will see that the InsertTestShape() function returns a reference to the 3d object/shape that the function creates. So... the line...

$tt = Inserttestshape();

makes a global variable called $tt, equal to that shape. I think its a handle to the shape which represents the number of the object you've just created, i.e. 1388.

That help at all.