but i can't merge it with the bepu model draw logic
Code: Select all
Vector3[] staticTriangleVertices;
int[] staticTriangleIndices;
Model model = game.Content.Load<Model>("mymodel");
ModelDataExtractor.GetVerticesAndIndicesFromModel(model, out staticTriangleVertices, out staticTriangleIndices);
var staticMesh = new StaticMesh(staticTriangleVertices, staticTriangleIndices, new AffineTransform(new Vector3(0.01f, 0.01f, 0.01f), Quaternion.Identity, new Vector3(0, 0, 0)));
staticMesh.Sidedness = TriangleSidedness.Counterclockwise;
Space.Add(staticMesh);
game.ModelDrawer.Add(staticMesh);
any ideas?
thanks
EDIT:
i made it, but now my model moves with the camera
i decided to draw in the "DrawUI" method, in the xna code i draw this in the Draw method and the objects are independent from the camera