Notification for unloaded tiles? #2512
Answered
by
gwaldron
wangfeng1981
asked this question in
Support Q&A
-
Hi guys, are there APIs for detecting which tiles are unloaded in the scene? I want to add Bullet physics engine for the terrain. I use a callback of onTileUpdated for adding the tile rigid body. However I do not when and how to remove those rigid body of unloaded tiles. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
gwaldron
May 2, 2024
Replies: 1 comment
-
No; there is no callback for a removed tile. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gwaldron
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No; there is no callback for a removed tile.
However, onTileUpdate() passes you a node. If you store an osg::observer_ptr<> for this node, you should be able to detect when it gets deleted.