Inheriting the Actor

gugus

05-06-2008 12:37:01

I am doing some stuff with a class which inherit from Actor class(as here:http://www.nxogre.org/Inheriting_Actor_and_forcing_NxOgre_to_use_your_own_Body_type_class)

I made a new Scene class which inherite of NxOgre::Scene and i create a new function in order to create this new type of actor. Is it the right way of doing it?
If I just do new Actor, will NxOgre keep track of my Actor?(i guess not)

And how can I delete this kind of actors?I made a new function in my new Scene class,but will it be OK if i just use the destructor?

betajaen

05-06-2008 13:18:32

For now; you have to new and delete your body class. Once '22 comes out, you can use the second part of that tutorial; for NxOgre to do it for you.

gugus

05-06-2008 13:36:48

Ok. When will 1.0'22 be out?There are so many cool feature!

betajaen

05-06-2008 14:07:05

Not for a while. I'm finishing of a module for university, which is taking a lot of my time up.