New setQuad function

Allows to easily update the coordinates of a quad (used for dynamic slipstreaming quad)
This commit is contained in:
Alayan-stk-2
2018-04-12 21:33:33 +02:00
committed by GitHub
parent 26d4cf4795
commit df2714ae71

View File

@@ -84,6 +84,9 @@ public:
/** Returns the center of a quad. */
const Vec3& getCenter () const { return m_center; }
// ------------------------------------------------------------------------
/** Set new quad coordinates. */
void setQuad (const Vec3 &p0, const Vec3 &p1, const Vec3 &p2, const Vec3 &p3);
// ------------------------------------------------------------------------
void setHeightTesting(float min, float max)
{
m_min_height_testing = min;