Game Development Community

Scaling

by Brian Wilmeth · in Torque Game Engine · 02/28/2006 (12:14 pm) · 3 replies

What's wrong with this code?

function TorqueLogoItem::onAdd(%obj)
{
%scale = 5;
%obj.setScale(%scale SPC %scale SPC %scale);
}

the object I am adding isn't scaling correctly.


One more question..

Where can I find a list of all built in torque functions. T2D has a reference. I couldn't find a reference for T3D..

Thanks

#2
02/28/2006 (1:30 pm)
I'm looking for the simple ones like scaling, transforming, rotation, all in script..

I couldn't find any of these in that document..
#3
02/28/2006 (6:35 pm)
It says it can't find the function setScale. The code is practically the same as used in "3d programming all in one", I don't know why it doesn't work/.