diff --git a/include/obj/bhkNiTriStripsShape.h b/include/obj/bhkNiTriStripsShape.h index 20183de5aa4dc17628a110aecdce62db1540b9a1..f8029d194fafa1f820c9782d48ed5bc765154efb 100644 --- a/include/obj/bhkNiTriStripsShape.h +++ b/include/obj/bhkNiTriStripsShape.h @@ -85,6 +85,18 @@ public: */ NIFLIB_API void SetStripsData( int index, NiTriStripsData * strips ); + /*! + * Get the shape's material. This determines the type of noises the object makes as it collides in Oblivion. + * \return The Oblivion material used by this collision shape. + */ + NIFLIB_API HavokMaterial GetMaterial() const; + + /*! + * Sets the shape's material. This determines the type of noises the object makes as it collides in Oblivion. + * \param[in] value The new material for this shape to use. + */ + NIFLIB_API void SetMaterial( HavokMaterial value ); + //--END CUSTOM CODE--// protected: /*! The shape's material. */ diff --git a/src/obj/bhkNiTriStripsShape.cpp b/src/obj/bhkNiTriStripsShape.cpp index 6db9ad0fb18b880c79f79b0793e590d80277a4fe..4bb722a7958c5cd62a86a5efb5a069290ff6352a 100644 --- a/src/obj/bhkNiTriStripsShape.cpp +++ b/src/obj/bhkNiTriStripsShape.cpp @@ -219,4 +219,12 @@ void bhkNiTriStripsShape::SetScale( const Vector3 & n ) { scale = n; } +HavokMaterial bhkNiTriStripsShape::GetMaterial() const { + return material; +} + +void bhkNiTriStripsShape::SetMaterial( HavokMaterial value ) { + material = value; +} + //--END CUSTOM CODE--//