| Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members |
Class encapsulates properties of a body. More...
#include <Material.h>
Public Member Functions | |
| f32 | getDynamicFriction () const |
| Gets the dynamic friction of this material. | |
| f32 | getRestitution () const |
| Gets the restitution of this material. | |
| f32 | getStaticFriction () const |
| Gets the static friction of this material. | |
| Material (const std::string &name, resource::Serializer *serializer) | |
| virtual void | setDynamicFriction (f32 dynamicFriction) |
| Sets the dynamic friction of this material. | |
| virtual void | setRestitution (f32 restitution) |
| Sets the restitution of this material. | |
| virtual void | setStaticFriction (f32 staticFriction) |
| Sets the static friction of this material. | |
| virtual | ~Material () |
Protected Member Functions | |
| void | initProperties () |
| void | unloadImpl () |
Protected Attributes | |
| f32 | mDynamicFriction |
| f32 | mRestitution |
| f32 | mStaticFriction |
Class encapsulates properties of a body.
| physics::Material::Material | ( | const std::string & | name, |
| resource::Serializer * | serializer | ||
| ) |
| physics::Material::~Material | ( | ) | [virtual] |
| f32 physics::Material::getDynamicFriction | ( | ) | const |
Gets the dynamic friction of this material.
References mDynamicFriction.
| f32 physics::Material::getRestitution | ( | ) | const |
Gets the restitution of this material.
References mRestitution.
| f32 physics::Material::getStaticFriction | ( | ) | const |
Gets the static friction of this material.
References mStaticFriction.
| void physics::Material::initProperties | ( | ) | [protected] |
Reimplemented from resource::Resource.
References mDynamicFriction, mRestitution, and mStaticFriction.
Referenced by Material().
| void physics::Material::setDynamicFriction | ( | f32 | dynamicFriction | ) | [virtual] |
Sets the dynamic friction of this material.
References mDynamicFriction.
| void physics::Material::setRestitution | ( | f32 | restitution | ) | [virtual] |
Sets the restitution of this material.
References mRestitution.
| void physics::Material::setStaticFriction | ( | f32 | staticFriction | ) | [virtual] |
Sets the static friction of this material.
References mStaticFriction.
| void physics::Material::unloadImpl | ( | ) | [protected, virtual] |
Reimplemented from resource::Resource.
References mDynamicFriction, mRestitution, and mStaticFriction.
f32 physics::Material::mDynamicFriction [protected] |
Referenced by getDynamicFriction(), initProperties(), setDynamicFriction(), and unloadImpl().
f32 physics::Material::mRestitution [protected] |
Referenced by getRestitution(), initProperties(), setRestitution(), and unloadImpl().
f32 physics::Material::mStaticFriction [protected] |
Referenced by getStaticFriction(), initProperties(), setStaticFriction(), and unloadImpl().
|
The KG Game Engine
Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:08 by
Doxygen
(1.7.4)
|