Torr
-
Posts
6 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Articles
Docs
Gallery
Posts posted by Torr
-
-
Thanks for this, since the doc is not so wide, expecially for c++ part, this thread is very important.
Now I'm looking on how to instantiate a mesh, so I looked at player class.
Do you have a link where is explained how to instantiate it? Or the only way is to check the current existent classes?
Thanks!!
-
Thanks for this information, but if the ConsoleObject cannot be instantiated, why they put "Console" in the name?
What stand this name SimObject?
Since I can't find nothing about memory management or Garbage collector, This engine uses a memory system or it's demand to the programmer to manage it?
If you know, specify it for either c++ and c-script please.
-
I've created this class:
class MyFirstClass : public ConsoleObject { public: typedef ConsoleObject Parent; public: String mName; public: DECLARE_CONOBJECT(MyFirstClass); MyFirstClass(); static void initPersistFields(); };And I want init an object of it using c-script, so i written:
%firstObject = new MyFirstClass(); %firstObject.name = "Text written from .cs file"; echo(%firstObject.name);
but I get an error that says this I need inerith from SimObject. I attached a screenshot with the full error text.
How can I Init this object in c-script?
How can I Init an object in c++ and register its pointer to the memory manager?
-
Oh, Thanks you! I've understood the wrong thing by reading the code documentation.
So each function, object, class that is exposed to c-script is also available to console?
-
I'm new of Torque3D
Looking the source to understand how to expose function to c-script I found these: DefineEngineFunction, ConsoleFunction
Can you please confirm me if I've understood well?
With DefineEngineFunction the function exposed can be called either on console and c-script but when the console is removed / dropped this function is available only for c-script.
With ConsoleFunction the function is available either on console and c-script but when the console is removed / dropped the function cannot be accessed by none of the two.
How can I drop the console to make a test?


Meaning verification DefineEngineFunction & ConsoleFunction
in C++
Posted
I searched for the examples, on google and on git-hub, but I've not found nothing. Can you please give me the link to these?