Claude Chappe' Curse - A C Game
Logo Institut d'Informatique Claude Chappe Logo Université de Le Mans Logo Raeptor Production
 
Loading...
Searching...
No Matches
physics.h File Reference
#include <io/input.h>
#include <render/lighting.h>
Include dependency graph for physics.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CollectedNode
 Represents a node collected by an area. More...
 
class  Area
 Represents an area with collision shapes and nodes. More...
 

Functions

void apply_body_collision (struct Node *shapeA, struct Node *shapeB, vec3 collisionNormal, vec3 angularNormal, float penetrationDepth)
 Apply body collision between two shapes.
 
void check_collisions (struct Node *shape)
 Check collisions for a shape.
 
void update_script (struct Node *node, vec3 pos, vec3 rot, vec3 scale, float delta, struct Input *input, struct Window *window)
 Update the script for a node.
 
void update_physics (struct Node *node, vec3 pos, vec3 rot, vec3 scale, float delta, struct Input *input, struct Window *window, u8 lightsCount[LIGHTS_COUNT], bool active)
 Update the physics for a node.
 
void update_global_position (struct Node *node, vec3 pos, vec3 rot, vec3 scale)
 Update the global position of a node.