f7011a79c8bf736f5753e2bfe8b698755bc6d4a2
[neverball] / share / solid_all.h
1 #ifndef SOLID_ALL_H
2 #define SOLID_ALL_H
3
4 #include "solid.h"
5
6 void sol_body_p(float p[3], const struct s_file *fp, int pi, float t);
7 void sol_body_v(float v[3], const struct s_file *fp, int pi, float t, float dt);
8 void sol_body_e(float e[3],
9                 const struct s_file *fp,
10                 const struct s_body *bp, float dt);
11 void sol_body_w(float w[3], const struct s_file *fp, const struct s_body *bp);
12
13 void sol_rotate(float e[3][3], const float w[3], float dt);
14
15 void sol_pendulum(struct s_ball *up,
16                   const float a[3],
17                   const float g[3], float dt);
18
19 void sol_swch_step(struct s_file *fp, float dt);
20 void sol_body_step(struct s_file *fp, float dt);
21 void sol_ball_step(struct s_file *fp, float dt);
22
23 int            sol_item_test(struct s_file *fp, float *p, float item_r);
24 struct s_goal *sol_goal_test(struct s_file *fp, float *p, int ui);
25 int            sol_jump_test(struct s_file *fp, float *p, int ui);
26 int            sol_swch_test(struct s_file *fp, int ui);
27
28 #endif