Hi,
I have recently come back to an old Irrlicht project i mest up a while back, ive progressed a little and cleared my errors...
my problem now is that i have a camerascenenode which has a parent animatedmeshscenenode...i dont understand this fixing the target thing addCameraSceneNode because it quite literally fixes my target...i mean, when i rotate my animated mesh scene node the camera's position rotates around the mesh but its view is fixed on the point i set it at...
is something wrong? or do i need to work out the target based on the mesh's rotation somehow (*shrugs*) everytime the mesh rotates?
an please dont mention the fpscamera because we dont like each other
camera target
i find it hard to understand what you said, maybe i need a coffee
your saying that the cameras position relative to it's parent model is correct : if you move the model the camera position changes as expected. but the camare is always looking at a certain point, no matter its' location ?
if that is the case then my guess is; yes you will have to add code to handle that. the easiest way would be to have "camera rotation = model rotation" every time the model moves. and i wouldn't use set target if it's possible.
i dont know how the model is getting moved though, if it's automatic through irr' then keymaps are likely involved. if so hunt them down in the api to find out what you need to change / access.
your saying that the cameras position relative to it's parent model is correct : if you move the model the camera position changes as expected. but the camare is always looking at a certain point, no matter its' location ?
if that is the case then my guess is; yes you will have to add code to handle that. the easiest way would be to have "camera rotation = model rotation" every time the model moves. and i wouldn't use set target if it's possible.
i dont know how the model is getting moved though, if it's automatic through irr' then keymaps are likely involved. if so hunt them down in the api to find out what you need to change / access.