• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 %module btConvexHullShape
2 
3 %{
4 #include <BulletCollision/CollisionShapes/btConvexHullShape.h>
5 %}
6 %include "BulletCollision/CollisionShapes/btConvexHullShape.h"
7 
8 %extend btConvexHullShape {
btConvexHullShape(const btShapeHull * hull)9 	btConvexHullShape(const btShapeHull *hull) {
10 		btConvexHullShape *result = new btConvexHullShape();
11 		for (int i = 0; i < hull->numVertices(); i++) {
12 			result->addPoint(hull->getVertexPointer()[i]);
13 		}
14 		return result;
15 	}
16 };