X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=common.h;h=e4015a8d196750f17d50d94c3d72aca19b217f03;hb=86dbcd5796ed674ca9433cce1ace8bef322cd121;hp=2ee2d7cd55f70669b1cc310d12da17e31f68bbc1;hpb=6d66c67945f84476d6ac75a0497007cc30bcf58c;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/common.h b/common.h index 2ee2d7c..e4015a8 100644 --- a/common.h +++ b/common.h @@ -16,7 +16,14 @@ enum classtype k_classtype_block = 2, k_classtype_spawn = 3, k_classtype_water = 4, - k_classtype_car_path = 5 + k_classtype_car_path = 5, + k_classtype_instance = 6, + k_classtype_capsule = 7, + k_classtype_route_node = 8, + k_classtype_route = 9, + k_classtype_bone = 10, + k_classtype_skeleton = 11, + k_classtype_skin = 12 }; /* TODO: he needs a home somewhere */ @@ -28,4 +35,18 @@ struct ray_hit v3f pos, normal; }; +/* TODO: he needs a home somewhere */ +static void eval_bezier_time( v3f p0, v3f p1, v3f h0, v3f h1, float t, v3f p ) +{ + float tt = t*t, + ttt = tt*t; + + v3_muls( p1, ttt, p ); + v3_muladds( p, h1, 3.0f*tt -3.0f*ttt, p ); + v3_muladds( p, h0, 3.0f*ttt -6.0f*tt +3.0f*t, p ); + v3_muladds( p, p0, 3.0f*tt -ttt -3.0f*t +1.0f, p ); +} + +static int network_scores_updated = 0; + #endif /* COMMON_H */