diff --git a/Extras/MayaPlugin/Makefile b/Extras/MayaPlugin/Makefile index 953726736..592a7fabb 100644 --- a/Extras/MayaPlugin/Makefile +++ b/Extras/MayaPlugin/Makefile @@ -26,9 +26,9 @@ CPPFLAGS = -DBits64_ -m64 -DUNIX -D_BOOL -DLINUX -DFUNCPROTO -D_GNU_SOURCE -DLIN LDFLAGS =-Wl,-Bsymbolic -shared -BULLET_INCLUDE=-I$(BULLET)/src -I$(BULLET)/Extras/GIMPACT/include +BULLET_INCLUDE=-I$(BULLET)/src BULLET_LIB=-L$(BULLET)/out/linux/optimize/libs -L$(BULLET)/src \ - -lBulletColladaConverter -lcolladadom -llibxml -lGIMPACT -lGIMPACTUtils -lbulletdynamics \ + -lBulletColladaConverter -lcolladadom -llibxml -lGIMPACTUtils -lbulletdynamics \ -lbulletcollision -lbulletmath GL_LIB=-lGL -lGLU diff --git a/Extras/MayaPlugin/bt_box_shape.h b/Extras/MayaPlugin/bt_box_shape.h index 8bd9f6088..3f3796f5b 100644 --- a/Extras/MayaPlugin/bt_box_shape.h +++ b/Extras/MayaPlugin/bt_box_shape.h @@ -31,11 +31,12 @@ Written by: Nicola Candussi class bt_box_shape_t: public bt_collision_shape_t, public box_shape_impl_t { public: - virtual void gl_draw(size_t draw_style) { + virtual void gl_draw(size_t draw_style) + { +// std::cout << "bt_box_shape_t::draw" << std::endl; btBoxShape *box_shape = static_cast(shape()); btVector3 const& e = box_shape->getHalfExtentsWithoutMargin(); glPushMatrix(); - glScalef(2 * e.x(), 2 * e.y(), 2 * e.z()); if(draw_style & collision_shape_t::kDSSolid) { solid_cube(); diff --git a/Extras/MayaPlugin/bt_convex_hull_shape.h b/Extras/MayaPlugin/bt_convex_hull_shape.h index 9636a6910..40ac3f48a 100644 --- a/Extras/MayaPlugin/bt_convex_hull_shape.h +++ b/Extras/MayaPlugin/bt_convex_hull_shape.h @@ -116,8 +116,6 @@ protected: void update() { - btConvexHullShape *ch_shape = static_cast(shape()); - //apply the scaling btVector3 const& scale = m_ch_shape->getLocalScaling(); btPoint3 const* points = m_ch_shape->getPoints(); diff --git a/Extras/MayaPlugin/bt_plane_shape.h b/Extras/MayaPlugin/bt_plane_shape.h index bc3aa58e6..b9b9cbff2 100644 --- a/Extras/MayaPlugin/bt_plane_shape.h +++ b/Extras/MayaPlugin/bt_plane_shape.h @@ -31,7 +31,9 @@ Written by: Nicola Candussi class bt_plane_shape_t: public bt_collision_shape_t, public plane_shape_impl_t { public: - virtual void gl_draw(size_t draw_style) { + virtual void gl_draw(size_t draw_style) + { + // std::cout << "bt_plane_shape_t::draw" << std::endl; // btStaticPlaneShape *plane_shape = static_cast(shape()); glPushMatrix(); glScalef(100.0, 0.001, 100.0); diff --git a/Extras/MayaPlugin/bt_solver.h b/Extras/MayaPlugin/bt_solver.h index 860e0cbbe..cbee13dfa 100644 --- a/Extras/MayaPlugin/bt_solver.h +++ b/Extras/MayaPlugin/bt_solver.h @@ -27,8 +27,8 @@ Written by: Nicola Candussi #include "btBulletCollisionCommon.h" #include "btBulletDynamicsCommon.h" -#include "GIMPACT/Bullet/btGImpactShape.h" -#include "GIMPACT/Bullet/btGImpactCollisionAlgorithm.h" +#include "BulletCollision/Gimpact/btGImpactShape.h" +#include "BulletCollision/Gimpact/btGImpactCollisionAlgorithm.h" #include "solver_impl.h" #include "bt_rigid_body.h" diff --git a/Extras/MayaPlugin/drawUtils.cpp b/Extras/MayaPlugin/drawUtils.cpp index 18b476add..0f46b24e1 100644 --- a/Extras/MayaPlugin/drawUtils.cpp +++ b/Extras/MayaPlugin/drawUtils.cpp @@ -20,7 +20,7 @@ not be misrepresented as being the original software. Written by: Nicola Candussi */ -//drawUtils.cpp +#include #ifdef WIN32//for glut.h #include