diff car.cc @ 146:d1ddd095ab03

draw dot hit cource -rainbow-
author e085768
date Fri, 29 Jul 2011 15:18:48 +0900
parents 993d5f7e5f30
children c920a164d68a
line wrap: on
line diff
--- a/car.cc	Sat Jul 23 10:18:28 2011 +0900
+++ b/car.cc	Fri Jul 29 15:18:48 2011 +0900
@@ -226,6 +226,7 @@
 
   // 現在のコースで衝突・内外判定
   p = f;
+
   if (col_detect(&p->colface, car->vertical, car->location) == true) {
     goto FIELD_CHECK_OK;
   }
@@ -304,9 +305,16 @@
 
 
   //思う方向と逆に動いたので、マイナスして見ている。
-  car->body->xyz[0] = -car->location[0];
-  car->body->xyz[1] = -car->location[1];
-  car->body->xyz[2] = -car->location[2];
+  /*
+    car->body->xyz[0] = -car->location[0];
+    car->body->xyz[1] = -car->location[1];
+    car->body->xyz[2] = -car->location[2];
+  */
+  
+  car->body->xyz[0] = car->location[0];
+  car->body->xyz[1] = car->location[1];
+  car->body->xyz[2] = car->location[2];
+  
 
   // 壁にぶつかった時の処理
   if (car_field_check(game,car) == false) {
@@ -371,7 +379,7 @@
 
   // 角度。なぜかマイナス2倍でウマくいってる
   car->body->angle[1] = -car->y_angle * 2;
-  car->body->angle[0] = -90.0f;
+  //  car->body->angle[0] = -90.0f;
 
   // 傾き
   car_axis_rotation(car);