Mercurial > hg > old > magoroku_racing
comparison col.cc @ 143:be127b7d1812
minor fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 23 Jul 2011 10:18:28 +0900 |
parents | 8ac08eda80ac |
children | d1ddd095ab03 |
comparison
equal
deleted
inserted
replaced
142:8ac08eda80ac | 143:be127b7d1812 |
---|---|
71 { | 71 { |
72 FVECTOR o, o0; | 72 FVECTOR o, o0; |
73 int i; | 73 int i; |
74 ColFacePtr col_face=hd->colface; | 74 ColFacePtr col_face=hd->colface; |
75 | 75 |
76 printf("------------ hd->facenum = %d --------------\n",hd->facenum); | |
77 | 76 |
78 for (i=0; i<hd->facenum; i++) { | 77 for (i=0; i<hd->facenum; i++) { |
79 | 78 |
80 // * 垂心oを求める | 79 // * 垂心oを求める |
81 col_orthocenter(o, p, col_face[i].p0, col_face[i].normal); | 80 col_orthocenter(o, p, col_face[i].p0, col_face[i].normal); |
88 goto NOCOLLISION; | 87 goto NOCOLLISION; |
89 } | 88 } |
90 } | 89 } |
91 return false; | 90 return false; |
92 NOCOLLISION: | 91 NOCOLLISION: |
92 printf("---on hd->facenum = %d/%d ----- ",i, hd->facenum); | |
93 printf("P x,y,z = %f,%f,%f ",col_face[i].p0[0],col_face[i].p0[1],col_face[i].p0[2]); | |
94 printf("N x,y,z = %f,%f,%f\n",col_face[i].normal[0],col_face[i].normal[1],col_face[i].normal[2]); | |
95 | |
93 ps2_vu0_copy_vector(p, o); | 96 ps2_vu0_copy_vector(p, o); |
94 ps2_vu0_copy_vector(pose, col_face[i].normal); | 97 ps2_vu0_copy_vector(pose, col_face[i].normal); |
95 return true; | 98 return true; |
96 | 99 |
97 } | 100 } |