Front page
--
Wiki
Front page
--
Wiki
The forums for the Torque 3D game engine
Skip to content
Quick links
Unanswered topics
Active topics
Search
FAQ
Register
Login
Remember me
Forums
Torque 3D
C++
How does an object delete itself?
Expanding and utilizing the engine via C++.
2 posts
Page
1
of
1
Post a reply
Topic tools
Print view
How does an object delete itself?
kent
Posts:
35
Joined:
Sun Sep 04, 2016 11:54 pm
by
kent
» Sat Oct 08, 2016 9:24 am
Reply with quote
What is the proper way for a Scene-object derived class to remove itself on the engine side?
I feel like this is simple ... but I haven't a clue.
Re: How does an object delete itself?
kent
Posts:
35
Joined:
Sun Sep 04, 2016 11:54 pm
by
kent
» Sat Oct 08, 2016 11:15 pm
Reply with quote
OK. Figured it out. Defined in simObject.
safeDeleteObject() - schedules an object to be removed in 1ms.
deleteObject() - deletes the object immediately.
And for the record, you don't really want to call either of these inside unpack_update()..
Display posts from previous:
All posts
1 day
7 days
2 weeks
1 month
3 months
6 months
1 year
Sort by:
Author
Post time
Subject
Ascending
Descending
Post a reply
Topic tools
Print view
2 posts
Page
1
of
1
Return to “C++”
Jump to
News
Steering Committee
Announcements
Changelogs
Blogs
Show-off
General
General
Torque 3D website feedback
Job Board
Looking for work
Looking for help
Torque 3D
Beginner
Rendering
C++
TorqueScript
Content
Resources
Gameplay
Visuals
Assets
Tools
GUI
Torque 3D Development
Related Technologies
Torque 2D
Torque 6
OMNI
Made with Torque
Übergame
Dots Net Crits
MegaMotion
Who is online
Users browsing this forum: No registered users and 2 guests
Forums
Quick links
Delete all board cookies
Contact us
All times are
UTC+02:00