Skip to content
Snippets Groups Projects
Commit efc5a171 authored by Tazpn's avatar Tazpn
Browse files

Add SetMaterial/GetMaterial helpers to bhkNiTriStripsShape

parent 29597619
No related branches found
No related tags found
No related merge requests found
......@@ -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. */
......
......@@ -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--//
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment