604 Commits

Author SHA1 Message Date
Irlan
28367b8108 add b3QHull object
b3QHull allows users to create hull shapes from a list of points quickly. Example usage:

vec3* points = 0;
uint count = create_points(points);

b3QHull hull;
hull.Set(points, count);
2018-04-17 01:58:36 -03:00
Irlan
5e0a010881 cleanup quickhull 2018-04-17 01:53:36 -03:00
Irlan
fd04c35886 scale integrals before adding 2018-04-13 23:39:10 -03:00
Irlan
151ce1f385 rewrite hull inertia
Rewrite the algorithm that calculates the inertia tensor for a hull, inner loops

Also add a reference explaining the derivation
2018-04-13 22:06:04 -03:00
Irlan
4570c971c0 use mvvm
Switch the Testbed GUI architecture pattern to MVVM (Model-View-ModelView).
2018-04-13 14:18:02 -03:00
Irlan
b9b23de3a0 unused 2018-04-12 23:01:10 -03:00
Irlan
960dfd6298 unrelate view and model 2018-04-12 22:59:41 -03:00
Irlan
9ae1a9a627 remove include 2018-04-12 19:31:22 -03:00
Irlan
9d271cc5ed use mvp
Switch from MVC (Model-View-Controller) pattern to a modified MVP (Model-View-Presenter) pattern, to toss out the inconvenient Controller
2018-04-12 19:25:00 -03:00
Irlan
7bec2853b1 Merge branch 'master' of https://github.com/irlanrobson/bounce 2018-04-12 16:48:47 -03:00
Irlan Robson
a638557c67
update 2018-04-12 16:47:42 -03:00
Irlan
4de6bd50a2 inform about the controls 2018-04-12 16:47:06 -03:00
Irlan
b015127ea8 put info in correct place 2018-04-12 15:53:33 -03:00
Irlan
52e15063ac rewrite, simplify 2018-04-12 15:38:13 -03:00
Irlan
e5f49c53dd undo commit 2018-04-12 15:05:16 -03:00
Irlan
fd27a98876 typo 2018-04-12 15:01:20 -03:00
Irlan
f8bb0cfc27 enumerate aabb vertices 2018-04-12 15:00:00 -03:00
Irlan
144c9cfc99 draw, camera, test
Remove an unecessary function that draws a triangle using per-vertex coloring

Cut camera implementation and paste into draw.cpp

Use per-triangle tension mapping
2018-04-12 14:20:56 -03:00
Irlan
2a370613a8 move definition 2018-04-12 12:41:59 -03:00
Irlan
5cdafe9e8b forward slashes 2018-04-12 12:40:06 -03:00
Irlan
2af83c8bfc guard 2018-04-12 01:52:29 -03:00
Irlan
eb698f146a testbed, tests, ui 2018-04-12 01:50:22 -03:00
Irlan
3c8af0060a ui, camera 2018-04-11 03:06:13 -03:00
Irlan
959ce6d92a update ui, tests 2018-04-10 22:19:03 -03:00
Irlan
3e75b1f650 rename a label 2018-04-10 18:49:35 -03:00
Irlan
7ca7c1552c fix ray-cast test drawing 2018-04-10 13:54:08 -03:00
Irlan
5441592c48 move a header file 2018-04-10 01:40:13 -03:00
Irlan
23d810e927 license 2018-04-10 01:02:56 -03:00
Irlan
bd09b243c2 use mvc for the testbed, update almost all tests, bugfixes, improvements, cleanup
Since I started altering the testbed for better maintainability, I prefered to drop this (tested) large change with a single commit. Some changes below:

Put some globals in their correct place,

Now Testbed uses the MVC pattern (Model-View Controller). This way it becomes better to maintain than using no pattern  in my opinion.

Fixed some bugs in the debug draw interface.

Of course, updated almost all tests because of the differences.

Update script.
2018-04-10 00:57:14 -03:00
Irlan
59a993af18 add missing implementation 2018-04-09 02:46:05 -03:00
Irlan
49f7b2f728 add tension mapping test 2018-04-08 21:38:09 -03:00
Irlan
052a85eb53 update tests
Allow dragging a spring cloth in all spring cloth tests related to the spring cloth

Use gravity acceleration in Earth in all spring cloth tests
2018-04-08 21:37:30 -03:00
Irlan
5342361a5d use gravity 2018-04-08 00:13:29 -03:00
Irlan
63bc6c8674 rewrite profiler 2018-04-07 21:15:04 -03:00
Irlan
9bb4314cea test update 2018-04-07 21:14:34 -03:00
Irlan
6dd32061d7 rename contact areas to contact polygons 2018-04-07 01:34:11 -03:00
Irlan
54202454ea rename contact areas to contact polygons 2018-04-07 01:28:48 -03:00
Irlan
5401e8aba2 cleanup 2018-04-06 22:07:35 -03:00
Irlan
8e615d3ca4 typo 2018-04-06 21:58:00 -03:00
Irlan
62e12d6205 cleanup 2018-04-06 21:54:13 -03:00
Irlan
f11ec48adc add a test solution for #33 2018-04-06 16:35:37 -03:00
Irlan
0395904079 add comments 2018-04-06 16:32:19 -03:00
Irlan
d657d649e3 rearrange some code 2018-04-05 23:36:21 -03:00
Irlan
f26cd09f3a update an example that misuses rotation locking functionality 2018-04-05 22:09:59 -03:00
Irlan
85c14fa887 comment b3MassData members 2018-04-05 21:27:28 -03:00
Irlan
ba3fb6deb6 bugfix in hull inertia 2018-04-05 19:23:47 -03:00
Irlan
87b4efc6b5 ensure valid inertia tensors 2018-04-05 18:35:21 -03:00
Irlan
f769edcec9 eliminate duplicated test creation 2018-04-05 18:33:44 -03:00
Irlan
ef937c029b add opengl 2.1 support, update imgui, update premake script 2018-04-04 15:06:15 -03:00
Irlan
2b764021ff fix grid generation code 2018-04-03 23:31:59 -03:00