Changeset View
Changeset View
Standalone View
Standalone View
extern/bullet2/src/BulletCollision/CollisionShapes/btMaterial.h
| Show All 15 Lines | |||||
| /// This file was created by Alex Silverman | /// This file was created by Alex Silverman | ||||
| #ifndef BT_MATERIAL_H | #ifndef BT_MATERIAL_H | ||||
| #define BT_MATERIAL_H | #define BT_MATERIAL_H | ||||
| // Material class to be used by btMultimaterialTriangleMeshShape to store triangle properties | // Material class to be used by btMultimaterialTriangleMeshShape to store triangle properties | ||||
| class btMaterial | class btMaterial | ||||
| { | { | ||||
| // public members so that materials can change due to world events | // public members so that materials can change due to world events | ||||
| public: | public: | ||||
| btScalar m_friction; | btScalar m_friction; | ||||
| btScalar m_restitution; | btScalar m_restitution; | ||||
| int pad[2]; | int pad[2]; | ||||
| btMaterial(){} | btMaterial() {} | ||||
| btMaterial(btScalar fric, btScalar rest) { m_friction = fric; m_restitution = rest; } | btMaterial(btScalar fric, btScalar rest) | ||||
| { | |||||
| m_friction = fric; | |||||
| m_restitution = rest; | |||||
| } | |||||
| }; | }; | ||||
| #endif // BT_MATERIAL_H | #endif // BT_MATERIAL_H | ||||