20 void Compute(
int nb_verts,
const Vector3* verts);
24 inline float GetRadius()
const {
return mRadius; }
27 inline float Radius()
const {
return mRadius; }
92 if(
mRadius < 0.0f)
return FALSE;
~CShapeSphere()
Destructor.
Definition: ShapeSphere.h:18
CShapeSphere()
Constructor.
Definition: ShapeSphere.h:10
Vector3 mCenter
Sphere center.
Definition: ShapeSphere.h:96
different physics engine has different winding order.
Definition: EventBinding.h:32
BOOL IsValid() const
Checks the sphere is valid.
Definition: ShapeSphere.h:89
Standard 3-dimensional vector.
Definition: ParaVector3.h:16
bool Intersect(const CShapeSphere &sphere) const
Tests if the sphere intersects another sphere.
Definition: ShapeSphere.h:77
Definition: ShapeSphere.h:6
AABB-related code.
Definition: ShapeAABB.h:11
CShapeSphere(const CShapeSphere &sphere)
Copy constructor.
Definition: ShapeSphere.h:16
float mRadius
Sphere radius.
Definition: ShapeSphere.h:97
bool Contains(const Vector3 &p) const
Tests if a point is contained within the sphere.
Definition: ShapeSphere.h:40
CShapeSphere(const Vector3 ¢er, float radius)
Constructor.
Definition: ShapeSphere.h:12