Creating a new Object Type
by Pollux · in Torque X 2D · 05/11/2007 (1:38 am) · 5 replies
Hi,
I just starting using TGBX and I would like to be able to create a new Object type accessible in code and TGBX.
Is it possible to do it from TGBX or should do I must do it in the C# studio express?
My end goal is to be able to access this newly created type to assign it to Script/Object type than use it in the CollideWith Property.
Thank you!
I just starting using TGBX and I would like to be able to create a new Object type accessible in code and TGBX.
Is it possible to do it from TGBX or should do I must do it in the C# studio express?
My end goal is to be able to access this newly created type to assign it to Script/Object type than use it in the CollideWith Property.
Thank you!
#2
05/11/2007 (7:29 am)
You most definately have to do it in C#. To see how, simply look in gamecomponents at how they add things. I'm not at home or I'd be more specific.
#3
05/11/2007 (9:20 am)
In TGBX, with no objects selected, click on the "Edit" tab. In the Scene Data rollout, there's a text box for "Object Types". Type in the name you want, hit the green button, and you're good to go. Looks like it's a similar thing for Collision Materials.
#4
05/11/2007 (10:54 am)
Ohhhhhh.. I thought he meant new object type like a custom object (in C# terms). doh!
Torque Owner Pollux
I guess I have to create new CollisionMaterial... if it is the case, how do I create one in TGBX?
Thanks again