Untitled
Loading...
Searching...
No Matches
physics.h
Go to the documentation of this file.
1
5
6#ifndef PHYSICS_H
7#define PHYSICS_H
8
9#include "core/engine_types.h"
10
11
21void init_PC(int mesh_node, PhysicsComponent * pc, AABB ai_aabb, CollisionType collision_type, PhysicsType physics_type);
22
127
135
142
150
158
164
165#endif
Engine specific types and defines.
void PC_resolve_impulse_static(PhysicsComponent *pcA, CollisionPoints *p)
Solves an impulse for a PhysicsComponent against a static Mesh.
Definition physics.c:1357
void update_physics_components()
The main PhysicsComponent loop that determines velocity, solves collisions, then integrates position.
Definition physics.c:1724
void player_resolve_impulse_static(PhysicsComponent *pcA, CollisionPoints *p)
Solves an impulse for a Player PhysicsComponent against a static Mesh.
Definition physics.c:1097
void init_PC(int mesh_node, PhysicsComponent *pc, AABB ai_aabb, CollisionType collision_type, PhysicsType physics_type)
Initializes a PhysicsComponent.
Definition physics.c:2141
CollisionType
Defines collision types with different behaviors and mesh setup and validation.
mat3 calc_inverse_inertia(PhysicsComponent *pc)
Calculates the mat3 IIA for a PhysicsComponent, using AABB bounds and mass.
Definition physics.c:2115
void PC_resolve_impulse(PhysicsComponent *pcA, PhysicsComponent *pcB, CollisionPoints *p)
Solves an impulse for a PhysicsComponent against another.
Definition physics.c:1516
PhysicsType
Defines physics types with different behaviors in impulse resolution.
void player_resolve_impulse(PhysicsComponent *pcA, PhysicsComponent *pcB, CollisionPoints *p)
Solves an impulse for a Player PhysicsComponent against another PhysicsComponent.
Definition physics.c:1167
Points that track collision data such as direction, penetration depth, and more to generate Manifolds...
Entity Component used for physics resolution.
Definition types.h:20