2 registered members (AndrewAMD, Akow),
1,371
guests, and 10
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: 3rd person camera help
[Re: MrNoOne]
#307618
01/30/10 15:15
01/30/10 15:15
|
Joined: Feb 2008
Posts: 18
davinski
Newbie
|
Newbie
Joined: Feb 2008
Posts: 18
|
We cant help you without seeing the code. Please post it!
GameStudio A7 Extraultitech - Ultimative Technology
|
|
|
Re: 3rd person camera help
[Re: davinski]
#307620
01/30/10 15:39
01/30/10 15:39
|
Joined: Jul 2008
Posts: 21
MrNoOne
OP
Newbie
|
OP
Newbie
Joined: Jul 2008
Posts: 21
|
this is the code:
function handle_camera() {
camera.x = my.x - fcos(my.pan, 120); camera.y = my.y - fsin(my.pan, 120); camera.z = my.z + 30; camera.pan = my.pan; camera.tilt += (mouse_force.y*5); ////// ////// if(camera.tilt > 90) { camera.tilt = 90; } else if (camera.tilt < -90) { camera.tilt = -90; }
}
Last edited by MrNoOne; 01/30/10 15:40.
|
|
|
|