efe9a887f696a291a33c6aa2595068300915d421
5 #define VG_FRAMEBUFFER_RESIZE 1
8 /* TODO: he needs a home somewhere */
9 static float ktimestep
= 1.0f
/60.0f
;
11 /* TODO: he needs a home somewhere */
16 k_classtype_block
= 2,
17 k_classtype_spawn
= 3,
18 k_classtype_water
= 4,
19 k_classtype_car_path
= 5,
20 k_classtype_instance
= 6,
21 k_classtype_capsule
= 7,
22 k_classtype_route_node
= 8,
23 k_classtype_route
= 9,
24 k_classtype_bone
= 10,
25 k_classtype_skeleton
= 11,
26 k_classtype_skin
= 12,
27 k_classtype_ik_bone
= 13
30 /* TODO: he needs a home somewhere */
31 typedef struct ray_hit ray_hit
;
39 /* TODO: he needs a home somewhere */
40 static void eval_bezier_time( v3f p0
, v3f p1
, v3f h0
, v3f h1
, float t
, v3f p
)
45 v3_muls( p1
, ttt
, p
);
46 v3_muladds( p
, h1
, 3.0f
*tt
-3.0f
*ttt
, p
);
47 v3_muladds( p
, h0
, 3.0f
*ttt
-6.0f
*tt
+3.0f
*t
, p
);
48 v3_muladds( p
, p0
, 3.0f
*tt
-ttt
-3.0f
*t
+1.0f
, p
);