I read the article in the Wiki and tried to adapt this for my situation. I pick a entity with a mousclick and if the entity is showing the BB (is selected) I want to rotate the cam around the selected object. I realize this by creating a new SceneNode which gets the same position as the entities SceneNode. Then I attach the cam to the new node and calculate the new relative position to it. The cam shouldn't not move at this point. The absolute position shouldn't change.
I'm have an failure in my calculations maybe but I didn't understand what happens to the cams position if I attach it!? And what happens if detaching? Do I have to calculate the absolute pos again so that no jump of the position appears?
CameraRotator -> attaching Camera to a SceneNode
- Yavin
- Bronze Sponsor

- Posts: 140
- Joined: Wed Mar 02, 2005 3:41 pm
- Location: Lake Constance, Germany
- Contact:
- Raven
- Goblin
- Posts: 203
- Joined: Wed Mar 23, 2005 1:07 pm
- Location: Melbourne, Australia
- Contact: