Ybalrid / Annwvyn

Annwvyn C++ Open Source designed-for-VR game engine and application developement framework
MIT License
41 stars 7 forks source link

Object parenting #69

Closed Ybalrid closed 7 years ago

Ybalrid commented 7 years ago

Working on #67 here.

This merge will add the possibility to attach a game object to another one, making a parent/child relationship.

This way, moving the parent move the child, moving the child change the relative position orientation of the parent.

This pose some problems with the physics engine because some situation will makes object behave in ways they shouldn't (drift in position, un-sync of the position of bodies from mesh. etc.)

I'm implementing exceptions than intends to crash the game and write useful logs to signal when theses situations happens, but basically, don't put physics on parent AND child at the same time.