enginmanap / limonEngine

3D FPS game engine with full dynamic lighting and shadows
http://www.limonengine.com
GNU Lesser General Public License v3.0
580 stars 57 forks source link

Removing object with its children #118

Closed onurblt closed 4 years ago

onurblt commented 4 years ago

Added removing object with its children to World::removeObject(),so attached objects like decals,will be removed after removing the parent.

fixes #101

enginmanap commented 4 years ago

Hey, Thanks for the PR. Can you add an option to the API to remove all children or leave the children alone?

onurblt commented 4 years ago

Yes I can . I think you mention about an additional boolean paramater to World::removeObject() ,don't you?

enginmanap commented 4 years ago

I think this should be exposed all the way to the user, on the LimonAPI::removeObject, so user can decide whether the remove should cascade or not.

onurblt commented 4 years ago

Ok. I will add it.

onurblt commented 4 years ago

You are welcome