Untitled
Loading...
Searching...
No Matches
physics.h File Reference

PhysicsComponent impulse resolution and collision detection and acceleration structure traversal. More...

Go to the source code of this file.

Functions

void init_PC (int mesh_node, PhysicsComponent *pc, AABB ai_aabb, CollisionType collision_type, PhysicsType physics_type)
 Initializes a PhysicsComponent.
void update_physics_components ()
 The main PhysicsComponent loop that determines velocity, solves collisions, then integrates position.
void player_resolve_impulse (PhysicsComponent *pcA, PhysicsComponent *pcB, CollisionPoints *p)
 Solves an impulse for a Player PhysicsComponent against another PhysicsComponent.
void player_resolve_impulse_static (PhysicsComponent *pcA, CollisionPoints *p)
 Solves an impulse for a Player PhysicsComponent against a static Mesh.
void PC_resolve_impulse_static (PhysicsComponent *pcA, CollisionPoints *p)
 Solves an impulse for a PhysicsComponent against a static Mesh.
void PC_resolve_impulse (PhysicsComponent *pcA, PhysicsComponent *pcB, CollisionPoints *p)
 Solves an impulse for a PhysicsComponent against another.
mat3 calc_inverse_inertia (PhysicsComponent *pc)
 Calculates the mat3 IIA for a PhysicsComponent, using AABB bounds and mass.

Detailed Description

PhysicsComponent impulse resolution and collision detection and acceleration structure traversal.

Definition in file physics.h.