Added ExtractForward to frustum.
This commit is contained in:
parent
6148783fe4
commit
eb27a4edfb
|
@ -241,4 +241,9 @@ bool Frustrum::Contains( const ICollideable &target ) const
|
|||
//case Type_line: return false; // TODO:
|
||||
default: return false;
|
||||
}
|
||||
}
|
||||
|
||||
::Oyster::Math::Float3 Frustrum::ExtractForwad()
|
||||
{
|
||||
return this->bottomPlane.normal.xyz;
|
||||
}
|
|
@ -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 ///////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue