184 Commits

Author SHA1 Message Date
Irlan
0393933ecf Put forces into a folder. Added soft b3MouseForce 2019-06-29 14:51:35 -03:00
Irlan
cc5d062ca5 Enable shearing in test 2019-06-27 19:36:45 -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
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
9189b6dfef Scale down the cloth triangles for rendering 2019-06-24 18:11:19 -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
9765e72ab9 Better API naming. Enable self-collision by default. 2019-06-18 21:00:03 -03:00
Irlan
ee8a15ddaa Disable bending in a test 2019-06-17 12:41:59 -03:00
Irlan
00819d015a Pass color to shader 2019-06-11 22:19:04 -03:00
Irlan
5ee66d645e Remove include 2019-06-05 13:48:37 -03:00
Irlan
2e9a8d7b24 Code consistency 2019-06-05 09:00:15 -03:00
Irlan
b277b8b588 Draw capsule in world space 2019-06-04 21:47:01 -03:00
Irlan
53e1f3a0be Bugfix 2019-06-04 21:35:11 -03:00
Irlan
56db3517f9 Draw solid stuff inside b3World 2019-06-04 20:56:51 -03:00
Irlan
43085c8cc1 Pushed code to draw a plane 2019-06-04 19:38:43 -03:00
Irlan
2c78e67844 Use a node tree. Rename damping to mass damping. 2019-06-03 14:33:42 -03:00
Irlan
46600010fe More consistency and pass velocity and position iterations to cloth constraint solver 2019-06-02 12:05:36 -03:00
Irlan
d89e658313 Removed experimental code 2019-06-02 11:03:19 -03:00
Irlan
a97e5c07cc Rename Softbody to Beam 2019-05-28 14:10:45 -03:00
Irlan
c696cb1a86 Update test 2019-05-24 20:36:33 -03:00
Irlan
b6f504b371 Include Rayleigh damping. Use struct instead of class. Update PinnedSoftBody test 2019-05-24 13:04:42 -03:00
Irlan
494fa0baa9 Incorporate plasticity model. Update the tests 2019-05-22 18:16:47 -03:00
Irlan
637199b5fd New feature: soft bodies! 2019-05-13 19:03:23 -03:00
Irlan
6f50645601 Use a local grid mesh 2019-05-13 16:23:46 -03:00
Irlan
b5edb9b1c7 Update soft_body.h 2019-05-04 15:56:47 -03:00
Irlan
ecb4df45f4 Array pointers can change after reallocation 2019-04-22 14:33:59 -03:00
Irlan
c6a3e47176 Consistency 2019-04-21 16:32:40 -03:00
Irlan
490a2963df Mesh generation to everybody
Add cylinder mesh generation
Mesh generation can be used by everyone
Mesh generation also gives vertex normals for convenience
2019-04-21 16:06:51 -03:00
Irlan
77ad799d94 Add comment 2019-04-20 13:57:12 -03:00
Irlan
1e85ea0a36 Handle case where subdivision in zero 2019-04-20 13:51:03 -03:00
Irlan
323ba37b73 Use a octosphere instead of a icosahedron 2019-04-20 13:45:18 -03:00
Irlan
34c5d6f157 Remove some duplicated code. 2019-04-20 13:27:28 -03:00
Irlan
23fa2bd162 Bugfix 2019-04-20 11:54:33 -03:00
Irlan
9c16391700 Optimize sphere mesh 2019-04-20 11:52:17 -03:00
Irlan
3adebe68c2 Removed a condition which isn't reached during the sphere mesh generation. 2019-04-19 09:58:02 -03:00
Irlan
14f6b279d2 Remove SPHERE_MESH_H after #endif. 2019-04-19 08:31:35 -03:00
Irlan
077d1eead5 Use assert instead of B3_ASSERT. 2019-04-19 08:31:08 -03:00
Irlan
399a6efc72 Use sphere mesh. Add soft body test. 2019-04-18 19:44:12 -03:00
Irlan
695514989e Removed a large cloth radius. The particle radius should be used to avoid visual artifacts and is a small value in typical situations. 2019-04-18 18:51:49 -03:00
Irlan
923a069408 Allow moving while jumping. Disable gravity when grounded. Change some parameters. 2019-04-18 11:05:13 -03:00
Irlan
df33dd5cab Setter and getter for spring mode cloth dragging 2019-04-18 11:02:04 -03:00
Irlan
8352e29847 Remove comment 2019-04-09 16:26:14 -03:00
Irlan
6aa677e133 Removed profiler listener 2019-04-08 13:53:35 -03:00
Irlan
7ed4166f0c Remove code 2019-04-07 08:07:34 -03:00
Irlan
1ef6d46d33 Add a statistical profiler. Also applied a bugfix b3Profiler.
- This is a compact hierarchical profiler which also stores node statistics
- Might need to use a hash-table to lookup statistic for node because each frame trees are build
2019-04-06 18:06:20 -03:00
Irlan
e32c2e61ee Update shirt.h 2019-04-04 10:35:13 -03:00
Irlan
4407e31d8a Draw the profiler tree. 2019-04-03 19:12:17 -03:00
Irlan
7c15a8eaf8 Fit windows to content 2019-04-03 19:02:21 -03:00
Irlan
c638a0a52c renaming 2019-04-02 10:26:54 -03:00