2D Physics: Ideas for a Community Project

BlitzMax Forums/BlitzMax Programming/2D Physics: Ideas for a Community Project

Great Work!

The reason the create method has no default values is that you are supposed to use the function CreateVector() if you want to have defaults. The library itself uses the method and then you also have to specify both X and Y, for security reasons.

We would really need someone who knows C++, that would save us countless hours. Converting the polygon code from that library.

What did you think about my "collidionPlanes" idea?

We should really try to make a simple demo and show how a object (let's start with a circle) would slide and bounce against some lines. Where you can set the Friction and Bounce parameters.

The worst thing, I really hope making "demos" will be so much easier when we have the GUI mod..

RE:EDIT2 ok, I didn't get a null error, what I meant was the wrong reflection I got when I took the end point and put it first (then it reflects through the other line instead of away from it).

Also I would like to make a simple map editor (poly/line editor) so that we can build physics demos. Yet that would also "require" the GUI module..

I think our first priority should be a nice demo that shows off EVERY ascpect of the library. With loads of options and switches. Having a really good testing enviroment would allow us to test new features much easier and without having to rely on teori. I'm afraid we will do a lot of work that we have to redo because we edit a major thing.

One thing that came to my mind (sorry) was the Line2D. I think we would benifit from having fields liek this:
StartX, StartY
Vector:Vector2D 'The Line vector , From startXY to EndXY
EndX,EndY
Normal:Vector

Because this would mean that checking the lenght of the Line would mean checking the vector. Also the angle would follow. The best thing in my opinion of using the Vector2D type as much as possible (instead of rewriting code) is that if someone comes up with a better or more efficient way to calculate basic vector stuff then ALL of the library/module will benefit. And you never know what will happen in the future, only time will tell =)