Hello ! sorry for my English, but I am French…
Thank you for your wonderful book !
I have a little problem with the parent relation with the camera :
I develop a space navigation simulation with metal and I use the final project of the chapter 9 as starting point. When I make my space ship a child of the camera (as in the book with camera and car), all works very well. But I need to place the camera as a child of the space ship (embarqued camera), and that doesn’t work at all, and I really don’t understand what is the reason… I have spent hours on this topics, without result… The camera doesn’t want at all to be a child of a Prop !.. (it compiles well but the result is the camera is not the child…)
I also use quaternions to navigate with the ship to not have gimbal-lock. Quaternions work very well with the space ship (a Prop in the code). But it doesn’t work at all with the camera. I am obliged to use camera.rotation with camera.quaternion.imag, and of course I obtain gimbal lock… and it is for this reason I want to put the camera as a child of the space ship.
Thank you to every body could help me to understand my errors…