44 Commits

Author SHA1 Message Date
Luke Benstead
e5897d433d Upgrade bounce 2020-01-30 18:42:47 +00:00
Irlan
7c1a72c572 Add b3GridClothMesh. Set particle friction to global cloth friction. Update the tests. Also simplified some code. 2019-06-21 10:58:04 -03:00
Irlan
99270a70b9 AABB stuff 2019-06-12 17:42:05 -03:00
Irlan
078081fa3c AABB stuff 2019-06-12 17:41:41 -03:00
Irlan
cb492f7d51 Unbuffer move if proxy gets destroyed 2019-06-12 17:39:57 -03:00
Irlan
3b910491c3 Set AABB from center and radius 2019-06-03 14:32:58 -03:00
Irlan
31cac5aacd Write once ray cast on triangle function 2019-05-13 16:23:05 -03:00
Irlan
a5a49df8c1 Begin pointer can change after reallocation 2019-04-22 14:38:51 -03:00
Irlan
1f65a9f79d update license headers 2019-02-26 16:41:28 -03:00
Irlan
41e036f268 restore a function 2018-10-06 00:26:53 -03:00
Irlan
6b95a04a09 rename a function, update a test 2018-10-05 11:57:23 -03:00
Irlan
cfb8effb12 add shape cast function 2018-10-02 16:21:49 -03:00
Irlan
d1b902449e optimize aabb raycast 2018-09-20 17:50:36 -03:00
Irlan
6486770fc1 set hull from vertex format
The user can create a convex hull from a vertex format, not directly from a list of vertices. That's interesting because in some 3D engines convex hulls are typically created from a render mesh that might structure a vertex in different ways in the memory.
2018-09-04 17:52:17 -03:00
Irlan
261c5fc044 switch hull indices to 32-bit indices 2018-07-19 13:05:14 -03:00
Irlan
bb9839321d add a code to generate a sphere hull for testing and also for convenience 2018-05-24 23:58:15 -03:00
Irlan
47a2c12160 use extension 2018-05-24 05:34:49 -03:00
Irlan
4b5df1dfc2 change class to structure for consistency 2018-05-23 03:47:34 -03:00
Irlan
804df66af0 add comment 2018-05-20 07:48:34 -03:00
Irlan
569a555bde allow toggling convex hull simplification at run-time in order to expected convex hull creation work 2018-05-12 21:56:11 -03:00
Irlan
6c136123d9 face merging control in convex hull simplification; more asserts; consistency; now user can pass arbitrary number of vertices to b3QHull 2018-05-11 03:14:17 -03:00
Irlan
c9f0b0cf93 moved SAT code into collision module 2018-04-29 22:27:41 -03:00
Irlan
ece8cea0c7 move qhull limits inside base class 2018-04-20 19:23:36 -03:00
Irlan
a6faeed545 zero convex hull counters 2018-04-20 03:09:28 -03:00
Irlan
7d71713bea store hull features on the stack 2018-04-19 19:42:37 -03:00
Irlan
efae0fc202 use unsigned integers instead of integers in some collision code 2018-04-18 17:20:39 -03:00
Irlan
75fe47b453 comment, bugfix, and simplification 2018-04-17 03:11:35 -03:00
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
e5f49c53dd undo commit 2018-04-12 15:05:16 -03:00
Irlan
f8bb0cfc27 enumerate aabb vertices 2018-04-12 15:00:00 -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
a8c2a48a6f add grid mesh for user convenience 2018-04-03 23:00:41 -03:00
Irlan Robson
3da2a25bd7 fix assert condition 2018-02-24 19:21:45 -03:00
Irlan
8986ea00eb typo 2017-06-06 16:04:49 -03:00
Irlan
8503c356a6 improve static tree construction 2017-06-06 16:02:48 -03:00
Irlan
8640a80914 clean up compiler warnings 2017-05-31 12:24:57 -03:00
Irlan
a683052e4c remove unecessary gjk duplication 2017-03-26 13:27:02 -03:00
Irlan
8defab9945 fix a lot of issues, add gyroscopic force integrator, add contact polygon winding, add some quaternion constraints, add more tests 2017-03-24 18:49:41 -03:00
Irlan
a346a1472d improve friction quality, add shader-only support, improve debug drawing facilities, fix couple things 2017-02-07 14:31:52 -02:00
Irlan
d59b67c3c3 fix mesh size, decouple mesh topology from geometry, add polygon triangulation to make mass calculation O(n) in memory 2017-02-02 14:02:54 -02:00
Irlan
20e06be722 add feature filtering for collision between spheres and meshes 2017-01-19 13:10:50 -02:00
Irlan Robson
7d0f06fea2 generate contact when body type changes at runtime, decoupling, add first ray cast hit query to world query (more to add later such as sphere/box/convex casts), hotfix 2017-01-13 17:17:02 -02:00
Irlan Robson
81f744b805 linux fixes, bugfixes, comments 2016-12-21 19:15:43 -02:00
Irlan Robson
8f29bc7e21 first commit 2016-12-18 18:39:47 -02:00