What is this (BEPU :( ) BEPU help !
Posted: Sat Jan 26, 2013 9:51 pm
Hello,
this is my first post here ! , I want to thanks BEPU team for this great physics engine .However , ooooooooooooo complexxx
.
I am new to physics engines exactly , so
I just want to implement charachter controller and all these problem suddenly appeared .
I follow the advice from BEPU to implement easy stuff first before go further into charachter controller .
-----------------------------
I read Getting Started . when I want to Draw my Model and add it into physics space it works fine and colliode with entities (BOX).
the problem is that when I export level1.x . however , it also works fine for code from Getting Started demo , but problems starts when I change it's scale or position , I saw all posts about aliging Model to Colliodable shape (ConvexHull ) and offset stuff !!!!!!!! I am confused little bit Ok .
1 : I try to implement ConvexHull as colliodable for my Model and did not work . whereas , it was before try to do convexHull.
2 : I try start from scratch and coding GraphicMatchingDemo.cs demo
OK every thing is good up to this :
next :
that shit class game.ModelDrawer lead me to implement ModelDrawer.cs and ModelDrawer.cs lead me to copy all BEPUphysicsDrawe namespace and make every thing complex and then I shut MY pc.
this is my first post here ! , I want to thanks BEPU team for this great physics engine .However , ooooooooooooo complexxx

I am new to physics engines exactly , so

I follow the advice from BEPU to implement easy stuff first before go further into charachter controller .
-----------------------------
I read Getting Started . when I want to Draw my Model and add it into physics space it works fine and colliode with entities (BOX).
the problem is that when I export level1.x . however , it also works fine for code from Getting Started demo , but problems starts when I change it's scale or position , I saw all posts about aliging Model to Colliodable shape (ConvexHull ) and offset stuff !!!!!!!! I am confused little bit Ok .
1 : I try to implement ConvexHull as colliodable for my Model and did not work . whereas , it was before try to do convexHull.
2 : I try start from scratch and coding GraphicMatchingDemo.cs demo













OK every thing is good up to this :
Code: Select all
//Create an entity based on the model.
ConvexHull hull = new ConvexHull(vertices, 10);
Space.Add(hull);
Code: Select all
//Create an entity based on the model.
ConvexHull hull = new ConvexHull(vertices, 10);
Space.Add(hull);
//Create a graphic for the hull. The BEPUphysicsDrawer will also automatically receive a visualization of the convex hull which we can compare our graphic against.
//The graphic will be offset from the collision shape because we have not attempted to offset it to match the collision shape's origin.
var graphic = new DisplayEntityModel(hull, model, game.ModelDrawer);
game.ModelDrawer.Add(graphic);