22 lines
585 B
C
22 lines
585 B
C
#ifndef __GE_PHYSICS_COMPONENT_H__
|
|
#define __GE_PHYSICS_COMPONENT_H__
|
|
|
|
#include <utils/ge_vector2i.h>
|
|
|
|
#define GE_PHYSICS_VELOCITY_BIT 3
|
|
#define GE_PHYSICS_ACCELERATION_BIT 3
|
|
|
|
typedef enum {
|
|
GE_PHYSICS_COMPONENT_TYPE_NONE = 1 << 0,
|
|
GE_PHYSICS_COMPONENT_TYPE_VELOCITY = 1 << 1,
|
|
GE_PHYSICS_COMPONENT_TYPE_ACCELERATION = 1 << 2,
|
|
} ge_physics_component_type_t;
|
|
|
|
typedef struct ge_physics_component {
|
|
ge_physics_component_type_t type;
|
|
ge_vector2i_t velocity;
|
|
ge_vector2i_t acceleration;
|
|
} ge_physics_component_t;
|
|
|
|
#endif // __GE_PHYSICS_COMPONENT_H__
|