Hi,
I have a hopefully very simple question. I'm sub-classing SimpleRenderable and need to dynamically change the bounding box. I'm modifying the mBox member but it seems the change is not reflected in the scene (i.e. the visibility of my renderable acts as if the bounding box is always 'null').
I found a possible solution, but I don't know if it's the right way to do it, because I thought it would automatically take effect. But right now I'm calling mParentNode->needUpdate() inside my class after changing the mBox member. Is this needed, or am I doing anything wrong?
Maybe I should note that the update of the bounding box occurs inside a FrameListener::frameStarted(). Could this be the reason why it isn't updating? And how could I fix this?
SimpleRenderable updating bounding box
- DWORD
- OGRE Retired Moderator
- Posts: 1365
- Joined: Tue Sep 07, 2004 12:43 pm
- Location: Aalborg, Denmark
- Contact:
- sinbad
- OGRE Retired Team Member
- Posts: 19269
- Joined: Sun Oct 06, 2002 11:19 pm
- Location: Guernsey, Channel Islands
- x 66
- Contact:
- DWORD
- OGRE Retired Moderator
- Posts: 1365
- Joined: Tue Sep 07, 2004 12:43 pm
- Location: Aalborg, Denmark
- Contact: