| 1234567891011121314151617181920212223 |
- #pragma once
- #include <iron_array.h>
- #include <iron_vec4.h>
- #include <iron_quat.h>
- typedef struct physics_pair {
- float pos_a_x;
- float pos_a_y;
- float pos_a_z;
- } physics_pair_t;
- void asim_world_create();
- void asim_world_destroy();
- void asim_world_update();
- physics_pair_t *asim_world_get_contact();
- void *asim_body_create(int shape, float mass, float dimx, float dimy, float dimz, float x, float y, float z, void *posa, void *inda, float scale_pos);
- void asim_body_apply_impulse(void *body, float x, float y, float z);
- void asim_body_get_pos(void *body, vec4_t *pos);
- void asim_body_get_rot(void *body, quat_t *rot);
- void asim_body_sync_transform(void *body, vec4_t pos, quat_t rot);
- void asim_body_remove(void *body);
|