Banjo API 0.0.1
C99 game development API
|
Go to the source code of this file.
Data Structures | |
struct | bj_particle_2d_t |
struct | bj_angular_2d_t |
struct | bj_rigid_body_2d_t |
Typedefs | |
typedef struct bj_particle_2d_t | bj_particle_2d |
typedef struct bj_angular_2d_t | bj_angular_2d |
typedef struct bj_rigid_body_2d_t | bj_rigid_body_2d |
Functions | |
void | bj_compute_kinematics_2d (bj_real out[restrict static(2)], const bj_real position[restrict static(2)], const bj_real velocity[restrict static(2)], const bj_real acceleration[restrict static(2)], bj_real time) |
void | bj_compute_kinematics_velocity_2d (bj_real out[restrict static(2)], const bj_real velocity[restrict static(2)], const bj_real acceleration[restrict static(2)], bj_real time) |
void | bj_apply_particle_force_2d (bj_particle_2d *p_particle, const bj_vec2 force) |
void | bj_step_particle_2d (bj_particle_2d *p_particle, bj_real dt) |
void | bj_apply_gravity_2d (bj_particle_2d *p_particle, bj_real gravity) |
void | bj_apply_point_gravity_2d (bj_particle_2d *restrict p_particle_from, const bj_particle_2d *restrict p_particle_to, const bj_real gravity_factor) |
void | bj_apply_point_gravity_softened_2d (bj_particle_2d *restrict p_particle_from, const bj_particle_2d *restrict p_particle_to, const bj_real gravity_factor, const bj_real epsilon) |
void | bj_apply_drag_2d (bj_particle_2d *p_particle, bj_real k1, bj_real k2) |
bj_real | bj_compute_particle_drag_coefficient_2d (const bj_vec2 vel, const bj_real k1, const bj_real k2) |
bj_bool | bj_compute_particle_drag_force_2d (bj_real result[restrict static(2)], const bj_real vel[restrict static(2)], const bj_real k1, const bj_real k2) |
void | bj_apply_angular_torque_2d (bj_angular_2d *angular, bj_real torque) |
void | bj_step_angular_2d (bj_angular_2d *angular, double delta_time) |
void | bj_apply_rigidbody_force_2d (bj_rigid_body_2d *body, const bj_vec2 force) |
void | bj_step_rigid_body_2d (bj_rigid_body_2d *body, double delta_time) |
Physics helpers (SI units, but dimensionally consistent with any unit system).