projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replay system reasonable
[carveJwlIkooP6JGAAIwe30JlM.git]
/
vehicle.c
diff --git
a/vehicle.c
b/vehicle.c
index ad3e00d675e7158aa3221738626da518af5bec91..a171a8d846c6d5ef2686beae59979fd9e883860b 100644
(file)
--- a/
vehicle.c
+++ b/
vehicle.c
@@
-3,11
+3,10
@@
#include "vehicle.h"
#include "vehicle.h"
-VG_STATIC int spawn_car( int argc, const char *argv[] )
-{
+VG_STATIC int spawn_car( int argc, const char *argv[] ){
v3f ra, rb, rx;
v3f ra, rb, rx;
- v3_copy(
main_camera
.pos, ra );
- v3_muladds( ra,
main_camera
.transform[2], -10.0f, rb );
+ v3_copy(
skaterift.cam
.pos, ra );
+ v3_muladds( ra,
skaterift.cam
.transform[2], -10.0f, rb );
float t;
if( spherecast_world( world_current_instance(), ra, rb,
float t;
if( spherecast_world( world_current_instance(), ra, rb,
@@
-92,7
+91,7
@@
VG_STATIC void vehicle_wheel_force( int index )
m4x3f mtx;
m3x3_copy( gzoomer.obj.rb.to_world, mtx );
v3_copy( pc, mtx[3] );
m4x3f mtx;
m3x3_copy( gzoomer.obj.rb.to_world, mtx );
v3_copy( pc, mtx[3] );
-
debug
_sphere( mtx, k_car_wheel_radius, VG__BLACK );
+
vg_line
_sphere( mtx, k_car_wheel_radius, VG__BLACK );
vg_line( pa, pc, VG__WHITE );
v3_copy( pc, gzoomer.wheels[index] );
vg_line( pa, pc, VG__WHITE );
v3_copy( pc, gzoomer.wheels[index] );