588 Commits

Author SHA1 Message Date
Irlan
dddfba5b21 Make code clearer 2019-06-28 21:12:58 -03:00
Irlan
bc050769a5 Update cloth.cpp 2019-06-28 15:30:13 -03:00
Irlan
0e4b1c4d1e Reuse triangle area since we use the triangle plane as the (u, v) plane 2019-06-28 15:19:22 -03:00
Irlan
b5e4b33980 Merge branch 'master' of https://github.com/irlanrobson/bounce 2019-06-28 14:54:24 -03:00
Irlan
55c4f190b1 Improved the code that computes the (u, v) coordinates for a triangle vertices. 2019-06-28 14:53:09 -03:00
Irlan Robson
15d5a3b303
Update readme.md 2019-06-27 20:22:55 -03:00
Irlan Robson
774805e264
Update readme.md 2019-06-27 19:41:47 -03:00
Irlan
cc5d062ca5 Enable shearing in test 2019-06-27 19:36:45 -03:00
Irlan
4bb367b27a Tossed out a term that makes the system non PD 2019-06-27 19:18:28 -03:00
Irlan
51d45ae372 Optimization 2019-06-27 17:03:24 -03:00
Irlan
b6d9f56583 Small refactor. Removed b3SparseSymMat33 since it is very particular. Pushed experimental b3ShearForce. 2019-06-27 16:19:42 -03:00
Irlan
774c0741bd Update strech_force.cpp 2019-06-27 04:19:56 -03:00
Irlan
a47c8e3e75 Update strech_force.cpp 2019-06-27 03:59:59 -03:00
Irlan
0733ebd3be Added per triangle stretching force and damping. This gives more realistics results. Also updated the tests.
Saying goodbye to mass-spring system!
2019-06-26 20:30:33 -03:00
Irlan
52439f3414 Bugfix 2019-06-24 18:39:10 -03:00
Irlan
9189b6dfef Scale down the cloth triangles for rendering 2019-06-24 18:11:19 -03:00
Irlan
028d8e101c Reestructured folders and applied a bugfix 2019-06-24 11:33:05 -03:00
Irlan
5bb247c79b Small refactor 2019-06-24 11:15:02 -03:00
Irlan
b18dae8f9d Reestructured folders 2019-06-24 10:16:16 -03:00
Irlan
1876592d22 Delete world body contacts if world gets detached. 2019-06-23 15:29:47 -03:00
Irlan
fe6c2a3b0e Bugfix 2019-06-23 15:28:44 -03:00
Irlan
441e8fd63f Update comments 2019-06-23 11:05:53 -03:00
Irlan
13eab5d00d Small refactor. Allow cloth particle to collide with multiple shapes. This is a more general solution. 2019-06-23 10:52:41 -03:00
Irlan
39b27c86d2 Copy mass one loop above 2019-06-22 19:32:20 -03: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
66ec7309e5 Also split soft body solver in two 2019-06-19 16:07:04 -03:00
Irlan
02872af0db Include cloth triangle inside Bounce headers 2019-06-19 14:08:44 -03:00
Irlan
625310be71 Split the solvers into force solver and contact solver 2019-06-19 12:39:28 -03:00
Irlan
9765e72ab9 Better API naming. Enable self-collision by default. 2019-06-18 21:00:03 -03:00
Irlan
170793896d Synchronize node AABB given displacement 2019-06-18 12:48:34 -03:00
Irlan
9d935ea17f Set particle radius to thickness 2019-06-18 11:58:10 -03:00
Irlan
f9e8d9394b Apply a bugfix 2019-06-18 11:55:09 -03:00
Irlan
13d8415a15 Support cloth self friction, thickness. Small refactor 2019-06-18 11:43:03 -03:00
Irlan
9414b7a275 Put a member variable prefix 2019-06-17 14:27:22 -03:00
Irlan
ee8a15ddaa Disable bending in a test 2019-06-17 12:41:59 -03:00
Irlan
5f756dafca Use a particle versus triangle contact constraint which is, numerically, more stable 2019-06-17 12:41:27 -03:00
Irlan
bc90c4f30e Positive diagonal check 2019-06-16 10:01:46 -03:00
Irlan
4f34c6a95b Remove unused, update comment 2019-06-15 11:38:33 -03:00
Irlan
11724ef5e3 Put nodes in a broadphase to reduce tree updates 2019-06-15 11:33:24 -03:00
Irlan
a3a9495d88 Use Jacobi preconditioner, not inverse Jacobi 2019-06-14 11:48:34 -03:00
Irlan
24a86505ee Move stuff around 2019-06-14 11:47:30 -03:00
Irlan
922a5a0a74 Swap parameters 2019-06-14 10:46:22 -03:00
Irlan
901aa7255d Update cloth.h 2019-06-13 13:36:31 -03:00
Irlan
f7becc7ee7 Organize cloth contacts 2019-06-13 10:13:15 -03:00
Irlan
6b92664c1e Use modified mass in velocity solver too 2019-06-12 20:52:39 -03:00
Irlan
46abe231e3 Use a modified inverse mass to avoid some instability problems 2019-06-12 20:46:54 -03:00
Irlan
e5db997fa7 Update cloth_contact_manager.cpp 2019-06-12 18:20:39 -03:00
Irlan
d3b6292afd Keep particles and triangles in a tree 2019-06-12 17:58:33 -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