Added ExtractForward to frustum.

This commit is contained in:
Robin Engman 2014-01-28 10:38:58 +01:00
parent 6148783fe4
commit eb27a4edfb
2 changed files with 7 additions and 0 deletions

View File

@ -242,3 +242,8 @@ bool Frustrum::Contains( const ICollideable &target ) const
default: return false;
}
}
::Oyster::Math::Float3 Frustrum::ExtractForwad()
{
return this->bottomPlane.normal.xyz;
}

View File

@ -41,6 +41,8 @@ namespace Oyster { namespace Collision3D
bool Intersects( const ICollideable &target ) const;
bool Intersects( const ICollideable &target, Oyster::Math::Float4 &worldPointOfContact ) const;
bool Contains( const ICollideable &target ) const;
::Oyster::Math::Float3 ExtractForwad();
};
// INLINE IMPLEMENTATIONS ///////////////////////////////////////