From a53336cc929277870baa3aab05ab961888c19f48 Mon Sep 17 00:00:00 2001 From: "chappuis.daniel" Date: Fri, 25 Dec 2009 09:38:27 +0000 Subject: [PATCH] git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@236 92aac97c-a6ce-11dd-a772-7fcde58d38e6 --- sources/reactphysics3d/body/BoundingVolume.h | 4 ++-- sources/reactphysics3d/body/OBB.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/reactphysics3d/body/BoundingVolume.h b/sources/reactphysics3d/body/BoundingVolume.h index cace6296..25589bed 100644 --- a/sources/reactphysics3d/body/BoundingVolume.h +++ b/sources/reactphysics3d/body/BoundingVolume.h @@ -46,8 +46,8 @@ class BoundingVolume { Body* getBodyPointer() const; // Return the body pointer void setBodyPointer(Body* body); // Set the body pointer - virtual void updateOrientation(const Vector3D& newCenter, const Quaternion& rotationQuaternion)=0; // Update the orientation of the bounding volume according to the new orientation of the body - virtual int getExtremeVertices(const Vector3D projectionAxis, std::vector& extremeVertices) const=0; // Return all the vertices that are projected at the extreme of the projection of the bouding volume on the axis + virtual void updateOrientation(const Vector3D& newCenter, const Quaternion& rotationQuaternion)=0; // Update the orientation of the bounding volume according to the new orientation of the body + virtual std::vector getExtremeVertices(const Vector3D& axis) const; // Return all the vertices that are projected at the extreme of the projection of the bouding volume on the axis virtual void draw() const=0; // Display the bounding volume (only for testing purpose) }; diff --git a/sources/reactphysics3d/body/OBB.h b/sources/reactphysics3d/body/OBB.h index 27d44218..bfe064eb 100644 --- a/sources/reactphysics3d/body/OBB.h +++ b/sources/reactphysics3d/body/OBB.h @@ -58,7 +58,7 @@ class OBB : public BoundingVolume { std::vector getFace(int index) const throw(std::invalid_argument); // Return the 4 vertices the OBB's face in the direction of a given axis double getExtent(unsigned int index) const throw(std::invalid_argument); // Return an extent value void setExtent(unsigned int index, double extent) throw(std::invalid_argument); // Set an extent value - virtual std::vector getExtremeVertices(const Vector3D& axis) const; // Return all the vertices that are projected at the extreme of the projection of the bouding volume on the axis + virtual std::vector getExtremeVertices(const Vector3D& axis) const; // Return all the vertices that are projected at the extreme of the projection of the bouding volume on the axis virtual void updateOrientation(const Vector3D& newCenter, const Quaternion& rotationQuaternion); // Update the oriented bounding box orientation according to a new orientation of the rigid body virtual void draw() const; // Draw the OBB (only for testing purpose) };