28 #ifndef HPL_PHYSICS_MATERIAL_NEWTON_H 29 #define HPL_PHYSICS_MATERIAL_NEWTON_H 31 #include "hpl1/engine/libraries/newton/Newton.h" 33 #include "hpl1/engine/physics/PhysicsMaterial.h" 38 class cPhysicsContactData;
45 void SetElasticity(
float afElasticity);
46 float GetElasticity()
const;
47 void SetStaticFriction(
float afElasticity);
48 float GetStaticFriction()
const;
49 void SetKineticFriction(
float afElasticity);
50 float GetKineticFriction()
const;
52 void SetFrictionCombMode(ePhysicsMaterialCombMode aMode);
53 ePhysicsMaterialCombMode GetFrictionCombMode()
const;
54 void SetElasticityCombMode(ePhysicsMaterialCombMode aMode);
55 ePhysicsMaterialCombMode GetElasticityCombMode()
const;
57 void UpdateMaterials();
59 int GetId() {
return mlMaterialId; }
62 float Combine(ePhysicsMaterialCombMode aMode,
float afX,
float afY);
64 static int BeginContactCallback(
const NewtonMaterial *material,
65 const NewtonBody *apBody1,
const NewtonBody *apBody2, int32);
66 static void ProcessContactCallback(
const NewtonJoint *joint,
float, int32);
68 NewtonWorld *mpNewtonWorld;
72 ePhysicsMaterialCombMode mFrictionMode;
73 ePhysicsMaterialCombMode mElasticityMode;
76 float mfStaticFriction;
77 float mfKineticFriction;
82 #endif // HPL_PHYSICS_MATERIAL_NEWTON_H
Definition: PhysicsWorld.h:115
Definition: PhysicsMaterial.h:77
Definition: PhysicsMaterialNewton.h:40