#1
|
|||
|
|||
How do I run a destructor before the end of the program?
I am writing a program that is basically just a bunch of critters running around.
I can create them fine...but how do I run the destructor on them when they die without waiting till the end of the program? |
#2
|
|||
|
|||
You can use the <node3D>.remove() command to permanently remove the object from the scene.
|
#3
|
|||
|
|||
2 questions about that,
Does the .remove() actually run the destructor also? Does it free up it's resources, etc? Also, it throws a '...does not have .remove() function' error when I try to run it on my own class object. Do I need to do something special to include .remove()? |
#4
|
|||
|
|||
Yes, it will free up resources used.
This method will work on Vizard's node3D objects. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
changing the gain of a joystick during a program | Saz | Vizard | 4 | 06-25-2009 04:49 AM |
Is it possible to save a vizard program as (movie) a media file? | ghazanfar | Vizard | 5 | 05-07-2007 11:03 AM |
Get position data in an own little program | Researcher | Precision Position Tracker (PPT) | 2 | 02-01-2006 03:55 AM |
Multiple Stages in one Program | Amit | Vizard | 7 | 11-11-2005 11:20 AM |
Loading .3ds-Files without interrupting Program flow | Stefan | Vizard | 10 | 06-08-2005 05:44 PM |