The camera, however, is a bit trickier
This tutorial will guide you through creating a Cam Controller system, which has the advantage of being able to be used by anyone, while not receiveing interference
The wiring of the cam controller itself will be dealt with last
First, make sure you have a complete working ship and control seat
This seat should be whatever vehicle you would have used in the cockpit in a manned ship
For the sake of this tutorial, I will assume you have used an advanced pod controller and gyroscope
Once you have your ship and control seat, you need to choose a location for your camera
We will use the wire Locator tool
Place one locator where you want the camera to be
And one where you want the camera to aim
Next you will need two beacon sensors.
It's simpler if you put these at your control seat, rather than on your ship
Tie one becaon senser to the camer location, and the other to where the camera will aim
To tie a beacon sensor to a locator, simply use the "Beacon Sensor" tool, right click on the sensor, then on the locator
Next, we must calculate where the cam controller will face
Since I couldn't find an input based solely on coordinates, we will calculate a vector based on the two points
For this, we will need 3 wire arithmetic gates, set to "Subtract"
and a wire vector gate set to "Compose"
These should be placed near your beacon sensors, to make wiring easier
The first subtraction gate will be our "X" value, the second will be our "Y" value, and the third will be our "Z" value
Wire each gate to subtract the values from the beacon sensors, in the form "camera target sensor - camera location sensor = output"
Wire the vector composition to take the values from the appropriate subtraction gates
In the following diagram, the topmost gate is our "X" subtraction gate, the middle is our "Y" subtrction, the bottom is our "Z" subtraction, and the gate to the right is our vector composition gate.
The red wires are linked to A on the gate and the appropriate output from camera aim sensor, and the green wires are linked to B on the gate and the appropriate outut from the camera location sensor
Now we should start on our cam controller.
Use the wire "Cam Controller" tool to create a cam controller. Right click on the cam controller then on the seat to tie them together.
The "Activate" input on the cam controller should wire into the "Activate" input for the pod controller. (Also see Optional Settings 2)
The "X", "Y", and "Z" inputs on the cam controller should link into the "World_X" "World_Y" and "World_Z" outputs on the camera loaction beacon sensor
The "Direction [VECTOR]" input on the cam controller should link into the output from the vector gate
Now when you enter your seat it should automatically switch your view to the camera location loacator, facing the camera aim locator
Edited by my_hat_stinks, 11 March 2011 - 16:09.