Game Development Community

Making Objects shrink

by Vishal Bhanderi · in Torque X 2D · 08/20/2008 (12:31 pm) · 2 replies

Hi guys,

Im trying to change the size of the animation and collision image on a T2DSceneObject, but every method i look at seems to be read only. Transform, WorldClipRectangle, WorldCollisionClipRectangle are all read only. Is there a way to shrink T2DSceneObjects ??

Thanks

#1
08/20/2008 (12:36 pm)
What about the Size member? You cannot change it this way:

sceneObj.Size.X = 10.0f;
sceneObj.Size.Y = 10.0f;

but you should be able to do this:

sceneObj.Size = new Vector2(10.0f, 10.0f);
#2
08/21/2008 (1:05 pm)
Thanks very much.

You guys are free to edit pages!!
Linky