Camera Height

Posted By: mschoenhals

Camera Height - 09/09/15 13:45

How do you define the height of a camera for a third person view?

Here's my current code:
Code:
// camera code
		vec_set (camera.x, vector(-my.skill2, my.skill3, my.skill4));
		vec_rotate (camera.x, player.pan);
		vec_add (camera.x, player.x);
		// accelerate camera's pan and tilt angles depending on mouse_force.x and mouse_force.y in order to create a smooth camera
		camera.pan -= accelerate (camera_h_speed, trpg_camera_h * (mouse_force.x), trpg_camera_h_frict);
		camera.tilt += accelerate (camera_v_speed, trpg_camera_v * (mouse_force.y), trpg_camera_v_frict);
		my.pan = camera.pan;
		// camera code end

Posted By: Realspawn

Re: Camera Height - 09/09/15 13:54

https://www.youtube.com/watch?v=zq7krn8Z_jo

all camera and view settings explaned laugh
Posted By: mschoenhals

Re: Camera Height - 09/09/15 14:07

Awesome!
Thanks. :-)
Posted By: Anonymous

Re: Camera Height - 09/09/15 14:23

You look like you may have template code in there.
Or just a interesting coding style.
Posted By: mschoenhals

Re: Camera Height - 09/09/15 16:31

I'm using the AUM Template and trying to modify it for my needs.
Posted By: Anonymous

Re: Camera Height - 09/09/15 18:23

Hacking the templates requires understanding how it all works. Or rather, how your hacks break things, what they break, why and how to fix the breaks.
© 2024 lite-C Forums