256 Commits

Author SHA1 Message Date
Irlan
615d243b14 separate square from rectangular matrices 2018-04-02 12:45:54 -03:00
Irlan
cc425786bc comment 2018-03-28 01:14:45 -03:00
Irlan
e22ed9852a bugfixes and improvements
Bugfixes:

Simplify and correct one derivation of a second derivative of energy function.

Clear dynamic variables for static shapes

Invalidate contact for a particle when its type switches from dynamic to static

Improvements:

Allow user to apply force to a particle

Allow user to displace a particle

Compute kinetic energy

Store the mass of each particle, not only its inverse. It can improve performance because the solver needs the masses most of the time for computations

Add some code to find shared and non-shared edges. These algorithms don't work for non-manifold meshes

Remove some unecessary temporaries decreasing code readability
2018-03-28 01:08:19 -03:00
Irlan
4d5c0644b3 typo 2018-03-26 17:00:11 -03:00
Irlan
42c8a998fb store number of iterations 2018-03-26 16:59:04 -03:00
Irlan
a21d46ac64 add MCG without Jacobi preconditioning, delegate cloth solver to another class, ignore positive separation, improve contact handling, support different shapes
Specially, see b3SpringSolver.cpp for details.
2018-03-26 16:03:43 -03:00
Irlan
3e55b28956 add collision detection routines for shape against sphere 2018-03-26 15:56:01 -03:00
Irlan
be812ed897 add collision (no friction) 2018-03-24 02:21:31 -03:00
Irlan
2cbf9b56ed add baraff and witkin's mass-spring-based cloth 2018-03-23 15:29:47 -03:00
Irlan
cf92ff3339 print cloth mesh vertices 2018-03-23 15:28:22 -03:00
Irlan
5a80171744 improve contact clustering algorithm 2018-03-23 00:12:59 -03:00
Irlan Robson
3da2a25bd7 fix assert condition 2018-02-24 19:21:45 -03:00
Irlan Robson
94770d10bf
switch from force to acceleration 2018-02-24 15:35:29 -03:00
Irlan
e27deb2868 fix issue 26, switch to VS 2017, cleanup 2017-07-19 10:58:05 -03:00
Irlan
8503c356a6 improve static tree construction 2017-06-06 16:02:48 -03:00
Irlan
4ff1e7947f read 2017-06-04 14:25:08 -03:00
Irlan
0b79b7283d consistency 2017-06-04 13:58:13 -03:00
Irlan
8640a80914 clean up compiler warnings 2017-05-31 12:24:57 -03:00
Irlan
c411bf341a add rope 2017-05-28 21:05:32 -03:00
Irlan
e0d2580fa1 switch from global to local damping 2017-04-12 10:54:28 -03:00
Irlan
7a438d0fba add function 2017-04-12 09:49:32 -03:00
Irlan
4c3eba7d18 fix issue 2017-04-11 17:06:46 -03:00
Irlan
bd69458750 rename function, remove indirection, fix bug 2017-04-11 16:35:18 -03:00
Irlan
d082c59754 fix raycast 2017-04-11 11:58:33 -03:00
Irlan
f924f70e76 add pendulum test (reduced coordinates), remove redundant assert 2017-04-04 20:56:10 -03:00
Irlan
d078b9f241 forgot division 2017-04-01 08:53:39 -03:00
Irlan
4d3dc172d3 fix 2017-03-27 08:28:56 -03:00
Irlan
3e716c3658 delay computation and declare const 2017-03-26 15:23:06 -03:00
Irlan
a683052e4c remove unecessary gjk duplication 2017-03-26 13:27:02 -03:00
Irlan
153abfb2fe comment 2017-03-25 10:44:20 -03:00
Irlan
eec596fe95 add comment 2017-03-25 10:28:05 -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
dd6ca355e9 typo 2017-03-06 13:39:39 -03:00
Irlan
c581dee66e fix capsule to hull contact generation, add weld joint with an alternative constraint model 2017-03-06 13:34:24 -03:00
Irlan
edd29d729a finish SAT optimization, calculate correct old sweep transform, remove unecessary static body transform update 2017-03-01 23:42:48 -03:00
Irlan
5cc72c5940 centralize profiler declaration 2017-02-28 20:47:45 -03:00
Irlan
71ee97aaa0 add hello world example and edit source tree 2017-02-27 18:59:58 -03:00
Irlan
091c99b5cf fix hull mass data calculation and make it more robust, bugfixes 2017-02-27 02:06:33 -03:00
Irlan
56ac6d1ad5 fix 2017-02-25 00:54:06 -03:00
Irlan
f340645755 typo 2017-02-24 21:52:32 -03:00
Irlan
689425d9ef add event profiler, json profile dump, cleanup 2017-02-24 20:11:49 -03:00
Irlan
875cc5316b fix capsule drawing, add quaternion convenience functions 2017-02-18 18:34:17 -02:00
Irlan
c110347669 mixed up if statement 2017-02-18 10:09:40 -02:00
Irlan
a1fb4b903b fix comments and tolerances 2017-02-17 16:48:52 -02:00
Irlan
012460f6b0 improve segment vs segment collision, small fixes 2017-02-17 13:52:24 -02: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
4f18e46268 add bending constraint, fix typos 2017-01-23 16:46:20 -02:00
Irlan
20e06be722 add feature filtering for collision between spheres and meshes 2017-01-19 13:10:50 -02:00
Irlan
afc08472b4 add simple cloth 2017-01-18 18:29:52 -02:00