So the challenge right now is to create a graybox beta, to make sure we have code working and then we can get on with design and style when we know we have some thing that works.
So far i have manage to get a camera code that makes the camera for the third person control in unity here is the codec which is in JS:
var Target : Transform;
var distanceFromPlayer = 10;
function LateUpdate()
{
transform.position = Target.position + Vector3(distanceFromPlayer,0,0);
}
This code is basically telling the camera to follow the 'Player' with 10 distance on the x axis so it is fixed in place and can only move side to side even when the character turns the camera will stay in a fixed postion from the player controller.
No comments:
Post a Comment