Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef PHYSMAT_H
- #define PHYSMAT_H
- #pragma once
- #include "Libraries/Util.h"
- #include <string>
- namespace Leadwerks {
- class Material;
- class PhysicsMaterial {
- public:
- PhysicsMaterial(Material* mat);
- std::string GetSurfaceProperty();
- private:
- std::string surfaceProperty;
- };
- inline PhysicsMaterial* GetPhysicsFromMaterial(Material* mat) {
- if (mat->GetUserData() == NULL) {
- new PhysicsMaterial(mat);
- }
- return static_cast<PhysicsMaterial*>(mat->GetUserData());
- }
- }
- #endif
Add Comment
Please, Sign In to add comment