expose the SphereTriangleDetector::collide method
cmake build tweaks: only compile BlenderSerialize if necessary
This commit is contained in:
@@ -1,11 +1,15 @@
|
|||||||
|
|
||||||
|
IF (BUILD_BLEND_DEMO)
|
||||||
|
SUBDIRS(BlenderSerialize )
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
IF(INTERNAL_UPDATE_SERIALIZATION_STRUCTURES)
|
IF(INTERNAL_UPDATE_SERIALIZATION_STRUCTURES)
|
||||||
|
|
||||||
# makesdna and HeaderGenerator are for advanced use only
|
# makesdna and HeaderGenerator are for advanced use only
|
||||||
# makesdna can re-generate the binary DNA representing the Bullet serialization structures
|
# makesdna can re-generate the binary DNA representing the Bullet serialization structures
|
||||||
# Be very careful modifying any of this, otherwise the .bullet format becomes incompatible
|
# Be very careful modifying any of this, otherwise the .bullet format becomes incompatible
|
||||||
|
|
||||||
SUBDIRS ( BulletFileLoader BulletWorldImporter BlenderSerialize HeaderGenerator makesdna)
|
SUBDIRS ( BulletFileLoader BulletWorldImporter HeaderGenerator makesdna)
|
||||||
|
|
||||||
ELSE(INTERNAL_UPDATE_SERIALIZATION_STRUCTURES)
|
ELSE(INTERNAL_UPDATE_SERIALIZATION_STRUCTURES)
|
||||||
|
|
||||||
|
|||||||
@@ -34,9 +34,11 @@ struct SphereTriangleDetector : public btDiscreteCollisionDetectorInterface
|
|||||||
|
|
||||||
virtual ~SphereTriangleDetector() {};
|
virtual ~SphereTriangleDetector() {};
|
||||||
|
|
||||||
|
bool collide(const btVector3& sphereCenter,btVector3 &point, btVector3& resultNormal, btScalar& depth, btScalar &timeOfImpact, btScalar contactBreakingThreshold);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
bool collide(const btVector3& sphereCenter,btVector3 &point, btVector3& resultNormal, btScalar& depth, btScalar &timeOfImpact, btScalar contactBreakingThreshold);
|
|
||||||
bool pointInTriangle(const btVector3 vertices[], const btVector3 &normal, btVector3 *p );
|
bool pointInTriangle(const btVector3 vertices[], const btVector3 &normal, btVector3 *p );
|
||||||
bool facecontains(const btVector3 &p,const btVector3* vertices,btVector3& normal);
|
bool facecontains(const btVector3 &p,const btVector3* vertices,btVector3& normal);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user