Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 1,258 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Camera Height #454490
09/09/15 13:45
09/09/15 13:45
Joined: Aug 2013
Posts: 101
M
mschoenhals Offline OP
Member
mschoenhals  Offline OP
Member
M

Joined: Aug 2013
Posts: 101
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


Re: Camera Height [Re: mschoenhals] #454492
09/09/15 13:54
09/09/15 13:54
Joined: Jul 2001
Posts: 4,801
netherlands
Realspawn Offline

Expert
Realspawn  Offline

Expert

Joined: Jul 2001
Posts: 4,801
netherlands
https://www.youtube.com/watch?v=zq7krn8Z_jo

all camera and view settings explaned laugh


Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain
Re: Camera Height [Re: Realspawn] #454493
09/09/15 14:07
09/09/15 14:07
Joined: Aug 2013
Posts: 101
M
mschoenhals Offline OP
Member
mschoenhals  Offline OP
Member
M

Joined: Aug 2013
Posts: 101
Awesome!
Thanks. :-)

Re: Camera Height [Re: mschoenhals] #454495
09/09/15 14:23
09/09/15 14:23

M
Malice
Unregistered
Malice
Unregistered
M



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

Re: Camera Height [Re: ] #454497
09/09/15 16:31
09/09/15 16:31
Joined: Aug 2013
Posts: 101
M
mschoenhals Offline OP
Member
mschoenhals  Offline OP
Member
M

Joined: Aug 2013
Posts: 101
I'm using the AUM Template and trying to modify it for my needs.

Re: Camera Height [Re: mschoenhals] #454504
09/09/15 18:23
09/09/15 18:23

M
Malice
Unregistered
Malice
Unregistered
M



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.


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1