What is this (BEPU :( ) BEPU help !

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
mohammadAdnan
Posts: 48
Joined: Sat Jan 26, 2013 5:54 pm

What is this (BEPU :( ) BEPU help !

Post by mohammadAdnan »

Hello,
this is my first post here ! , I want to thanks BEPU team for this great physics engine .However , ooooooooooooo complexxx :shock: .

I am new to physics engines exactly , so :mrgreen: 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 :

Code: Select all

//Create an entity based on the model.
            ConvexHull hull = new ConvexHull(vertices, 10);
            Space.Add(hull);
next :

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);
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.
mohammadAdnan
Posts: 48
Joined: Sat Jan 26, 2013 5:54 pm

Re: What is this (BEPU :( ) BEPU help !

Post by mohammadAdnan »

BEPU I know my questions are strange , but I hope to stand with me and help me out , as my project has a lot to do than Physics engine :( , so I feel I am lost with BEPU if I check out all documentation tutorials in codeplex ,dose this documentation gonna to help me out and solve my problems with BEPU !!!

where to start exactly !!! what are those complex classes BEPUphysicsDrawer namespace !!! I just wanna to make FPS game and make BEPU physics my great simulation for physic.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: What is this (BEPU :( ) BEPU help !

Post by Norbo »

where to start exactly !!!
Play around in the demos. Change things up within the demos to make different things happen. Try to make your own little simulations within the demos. Start with the simple ones, like the WallDemo, and as you become more comfortable, check out things like the EntityConstructionDemo which explain deeper ideas.

If you aren't comfortable with how everything is set up, I would not recommend trying to extract bits of code into a separate project just yet- that will just lead to frustration.
what are those complex classes BEPUphysicsDrawer namespace !!!
They are debug visualization classes. The physics engine itself is completely unaware of graphics and you can use any system to represent the physics. The BEPUphysicsDrawer is the visualizer used by the BEPUphysicsDemos (and a few documentation pieces), that's all. You are not forced to use them, though they can be helpful.
I just wanna to make FPS game and make BEPU physics my great simulation for physic.
For someone who isn't already very experienced, making a whole FPS game is not simple or easy- even with the assistance of engines. :)

It sounds a bit like you're diving into the deep end of the pool without learning to swim first. This rarely has optimal results. Usually, people who lack the needed foundation don't know what questions to ask to get unstuck. Instead, they unknowingly ask very 'large' or 'fuzzy' questions which have no single answer, but rather require many pages of explanation to fill in all the inferential gaps just to show why the question isn't the right question.

In this situation, my advice is usually to 1) play around a bunch (as mentioned) to try and get a feel for those foundations, and 2) if you need help, try to formulate extremely specific questions.
mohammadAdnan
Posts: 48
Joined: Sat Jan 26, 2013 5:54 pm

Re: What is this (BEPU :( ) BEPU help !

Post by mohammadAdnan »

thank you for help and sorry for my questions :) next time I will .
Post Reply