What am i doing wrong here?
Code: Select all
btVector3 motstate(0, 0, 0);
btVector3 inertia(0, 0, 0);
// create a vertex cloud defining a square-based pyramid
btVector3 points[5] = { btVector3(-0.5,1,1), btVector3(-0.5,1,-1), btVector3(-0.5,-1,1), btVector3(-0.5,-1,-1), btVector3(1,0,0) };
[b]how do i add this to the dynamics world???[/b]
Code: Select all
btVector3 motstate(0, 0, 0);
btVector3 inertia(0, 0, 0);
// create a vertex cloud defining a square-based pyramid
btVector3 points[5] = { btVector3(-0.5,1,1), btVector3(-0.5,1,-1), btVector3(-0.5,-1,1), btVector3(-0.5,-1,-1), btVector3(1,0,0) };
WHERE DO I GO FROM HERE?
how do i add the points i just add to a convex hull?