When uparrow is pressed, the Object should move away from Camera, when rightarrow is pressed, the Object should move right from Camera’s point of view, and so on…
How do I set the Object’s angle towards the moving direction?
How can I set the Camera to rotate it’s z-axis towards Object, but the Camera’s location does not change?
Do u know about Parenting? Parent means the camera will follow the object around. How about Track to Contriant? That means the camera will always be looking at the object, no matter what direction it moves. To move the object you will need to use the data blocks.
(To Parent, right click on the object, and then hold down the left shirt button, and right click on the camera. Now hold down ctrl and press the P key - ur mouse pointer should still be in the object scene, and now click parent in the little window that pops up. To Track to, do the same thing, select the object, then the camera, but this time, hold ctrl and press the Y key.)
Here is the best tutorial I’ve ever found for Blender; it was written by a hightschool teacher for a 3D - class he teaches, and he re-writes it about every year. This one is for Blender 2.49b. Here’s the link:
another good one is the Blender BSOD Game Engine tutorial; it’s is much shorter and quickly teaches u how to moved stuff around with the arrow keys. Sorry, just tried to find an active link but they are all dead ends. Just type the name into the browser…maybe something like “download bsod game engine pdf” ; that’s how I got mine. It’s pretty popular.
Good luck.
(p.s. There should be a copy of the Blender Hot Keys, a PDF, in ur Blender folder (c;/programs/Blender/Blender…)
Yes, I know about parenting. I have previously used vertex parenting from Camera to Object’s one vertex. This has made the Camera follow the Object, but retain its angle.
What should I do with the tracking(Ctrl+Y)? I chose Camera and Object and pressed the button combination, but I just get “no redo available”. I’m sure I’m just being a noob :no:
And data blocks? I have previously moved the Object by adding to the Y-axis and rotated the Z-axis when left or right is pressed.
you have multiple ways to solve this, but lets do it with 2 objects.
1 object is set up to have its Center at cameras position, and when pressing left or right, it rotates around its own axis.
this is the runway for the other object, that is a children of the runway.
When you now press Up or down, this object will have to move away or come closer.
Example is in the attachments.
The other thing would need you to know python and then it is a simple geometric class
Rotate object X always to cam, Move object around cam always with same distance and finaly change distance on pressing up or down.
So here is the blend with the script.
For any other things i can only recommend you to lern python because it makes
life easier inthe BGE and allowes alot of stuff.