I have just started working on using the game engine. I have created a sphere that can move. but I want the camera to be able to rotate and zoom on the ball. I cant figure out how to make the camera rotate around the ball and not around the axis or the camera’s center.
with empty highlighted: shift-select sphere, ctrl-p, make parent
select camera, shift-select empty
5)ctrl-p, make parent
now the empty will move with the sphere, and the camera will rotate around the empty… let me know if you have any question
It will answer your question. However, the camera will not rotate by itself. The player will have to rotate it manually. I haven’t figured out a way around this yet.
i can rotate up and down no problem, but when I rotate left and right I must be in a view parallel to the plain that the ball is siting on in order to get the camera to rotate staying at the same hight above the plain.
I hope this makes sense. and I hope you have an answer
@blendenzo- very cool, I didn’t know there was such as thing as vertex parenting, thanks for sharing.
if the vertex parenting doesn’t work (for some reason, i dont know) we could just use a simple python script that’s what I usually do before I heard of vertex parenting, the python would be:
empty.setPosition(sphere.getPosition())
this will copy the position but not the rotation… I’ve used it before…