Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, TedMar), 1,031 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
camera turning strange #350649
12/17/10 21:41
12/17/10 21:41
Joined: Sep 2009
Posts: 496
P
Progger Offline OP
Senior Member
Progger  Offline OP
Senior Member
P

Joined: Sep 2009
Posts: 496
Hi Community i have a big problem using this code

Code:
function handle_camera() 
{	

   
	camera.pan += (my.pan - camera.pan) * time_step * smooth_;
	camera.tilt += (my.tilt - camera.tilt) * time_step * smooth_;
	camera.roll += ((my.roll - camera.roll)/2) * time_step * smooth_;
	camera.x = my.x + fcos((camera.pan),fcos(camera.tilt,-50));
	camera.y = my.y + fsin((camera.pan),fcos(camera.tilt,-50));
	camera.z = my.z+2.5 + fsin(camera.tilt,-500);	
}




when i use this in my multiplayer game everything is fine if you use the server but if i choose a client the camera is turning bad why is it so im using this in both exactly the same code
IF someone has a solution it would be great because i really need to know why it is so laugh
THanks for rading and for ur help laugh
WFG Progger


asking is the best Way to get help laugh laugh laugh
Re: camera turning strange [Re: Progger] #350692
12/18/10 11:14
12/18/10 11:14
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Maybe, you need a different VIEW (for each client?).
While 'player' is the "Global pointer to the player entity on the current machine."[from the manual], camera doesn't get such a definition...


Moderated by  HeelX, Spirit 

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