Hi All,
Im have a floor in my game which can be rotated about. Seperately i have also defined a plane object which represents the plane the floor is sitting on. I draw and rotate my floor like such:
void SomeDrawMethod()
{
...
glPushMatrix();
glRotate(someValue, 0, 0, 1) // rotate by somevalue around z axis
drawFloor();
glPopMatrix();
}
What i would like to know is how i can rotate the plane to lie on the new position of the floor? My Plane is just a basic objet containing a point and normal
class Plane
{
public:
Plane();
~Plane();
// Some Accessors here
private:
vector4f point;
vector4f normal;
}
If any1 could help me out it would be much apprechiated.
Cheers.