7 #include "VoxelFarmConfig.h"
28 static const unsigned char cMATCLASSES = 10;
31 const float CONST_GRAVITY = -100.f;
32 const float AIR_DENSITY = 0.000001205f;
33 const float TERM_VEL = 550.f;
44 float* friction = NULL;
45 float* rfriction = NULL;
50 friction = (
float*)VF_RAWALLOC(cMATCLASSES*
sizeof(
float));
51 rfriction = (
float*)VF_RAWALLOC(cMATCLASSES*
sizeof(
float));
58 matData& operator =(
const matData& a)
61 restitution = a.restitution;
62 cstrength = a.cstrength;
63 memcpy(friction, a.friction, cMATCLASSES*
sizeof(
float));
64 memcpy(rfriction, a.rfriction, cMATCLASSES*
sizeof(
float));
70 TMap<int, matData> m_materials;
Contains all classes and functions for the VoxelFarm engine.