dev.gamez.lv Forum Index dev.gamez.lv
Latvian Game Developers Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 

c++ failu darbiibas
Goto page Previous  1, 2
 
dev.gamez.lv Forum Index -> Programmēšana
View previous topic :: View next topic  
Author Message
snake5
Indago dalībnieks
Indago dalībnieks


Joined: 27 Jun 2007
Posts: 2590

PostPosted: Thu Sep 27, 2007 11:37 pm    Post subject:

nē es to citādāk salīdzinu!
btw, atradu kļūdu - ievades secībā - no faila:
agrāk - x1,x2,y1,x2,z1,z2
vajadzēja - x1,y1,z1,x2,y2,z2
_________________
"There are two choices here: "looks good" and "realism"." -- Paul Nettle
Back to top
View user's profile Visit poster's website
bubu
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 23 Mar 2004
Posts: 3223
Location: Riga

PostPosted: Fri Sep 28, 2007 12:17 am    Post subject:

Ko nu tu tagad te mums stāsti pasaciņas? Tu salīdzini tieši tā kā vdl teica.

Tavis paša kods:
Code:
z>BBOX_Z1[n] && z<BBOX_Z2[n]

Ja z=0, un z1>0 un z2>0, tad rezultātam jābūt false. Ja jau tu stāvi uz zemes (z=0), un kaste atrodas gaisā (z1,z2 > 0), tad sadursmes NAV.

P.S. Nesmuki postēt megagarus teksta failus forumā.
Back to top
View user's profile Send e-mail
snake5
Indago dalībnieks
Indago dalībnieks


Joined: 27 Jun 2007
Posts: 2590

PostPosted: Fri Sep 28, 2007 2:25 pm    Post subject:

ne visur! es pat mēģināju spēlē pirmstam palekties - lai z lielāks, bet tas nedeva rezultātus
un tici man, šis sadursmes kods ir 100% pārbaudīts!
_________________
"There are two choices here: "looks good" and "realism"." -- Paul Nettle
Back to top
View user's profile Visit poster's website
bubu
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 23 Mar 2004
Posts: 3223
Location: Riga

PostPosted: Fri Sep 28, 2007 3:05 pm    Post subject:

snake5 wrote:
es pat mēģināju spēlē pirmstam palekties - lai z lielāks, bet tas nedeva rezultātus

Nu tad iepostē vērtības no paleciena laika!
Back to top
View user's profile Send e-mail
snake5
Indago dalībnieks
Indago dalībnieks


Joined: 27 Jun 2007
Posts: 2590

PostPosted: Fri Sep 28, 2007 5:01 pm    Post subject:

tach vienalga! es jau teicu, ka problēma atrisināta! vai tad ne?
Quote:
Posted: Thu Sep 27, 2007 11:37 pm Apstiprināt ziņojumu:
--------------------------------------------------------------------------------
nē es to citādāk salīdzinu!
btw, atradu kļūdu - ievades secībā - no faila:
agrāk - x1,x2,y1,x2,z1,z2
vajadzēja - x1,y1,z1,x2,y2,z2

_________________
"There are two choices here: "looks good" and "realism"." -- Paul Nettle
Back to top
View user's profile Visit poster's website
Display posts from previous:   
dev.gamez.lv Forum Index -> Programmēšana All times are GMT + 2 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group