|
|
camera_question
#155658
09/20/07 15:10
09/20/07 15:10
|
Joined: Jul 2007
Posts: 288 Germany, NRW
Martek
OP
Member
|
OP
Member
Joined: Jul 2007
Posts: 288
Germany, NRW
|
Hi,
ich habe für mein Spiel Third-Person-Spiel eine function geschreiben, damit die camera, wenn zwischen wand und player etwas befindet, sie nach vorne schwenkt. Es funktioniert alles super, nur wenn die camera genau in der Wand ist, dann ruckelt alles. Dies ist mein Code:
function camera_distance() { vec_set(temp.x, camera.x); temp.z -= 50; //Wert muss noch erporbt werden c_trace(player.x, temp.x, ignore_me + ignore_passable); if(result == 0) { player.skill10 += 4; } else { player.skill10 -= 8; } }
Wie könnte ich das Ruckeln verhindern???
Mfg, Pingulord
3D Gamestudio A7 Extra
|
|
|
Re: camera_question
[Re: cro_games]
#155660
09/21/07 12:00
09/21/07 12:00
|
Joined: Jul 2007
Posts: 288 Germany, NRW
Martek
OP
Member
|
OP
Member
Joined: Jul 2007
Posts: 288
Germany, NRW
|
Hello,
I programm for my thrid-perso-shooter a function, that trace between the player and the camera. If there is something between them, the camera move to the player. But if the camera is in wall, it move forward an backward, so all is shacking:) Here is my code:
function camera_distance() { vec_set(temp.x, camera.x); temp.z -= 50; //Wert muss noch erporbt werden c_trace(player.x, temp.x, ignore_me + ignore_passable); if(result == 0) { player.skill10 += 4; } else { player.skill10 -= 8; } }
Is there somebody who can help me?
Mfg, Pingulord
3D Gamestudio A7 Extra
|
|
|
Re: camera_question
[Re: cro_games]
#155662
09/21/07 19:29
09/21/07 19:29
|
Joined: Jul 2007
Posts: 288 Germany, NRW
Martek
OP
Member
|
OP
Member
Joined: Jul 2007
Posts: 288
Germany, NRW
|
I think that's the same like mine. I tried it, but it dosen't work, or as mine. So any other idea???
Mfg, Pingulord
3D Gamestudio A7 Extra
|
|
|
|