Commit Graph

59 Commits

Author SHA1 Message Date
Crozet Sébastien
d2ee642053 CCD: take angular motion and penetration depth into account in various thresholds. 2021-03-30 17:10:50 +02:00
Crozet Sébastien
8173e7ada2 Allow collider modification after its insersion to the ColliderSet. 2021-03-29 14:54:54 +02:00
Crozet Sébastien
97157c9423 First working version of non-linear CCD based on single-substep motion-clamping. 2021-03-26 18:16:27 +01:00
Crozet Sébastien
3a1502be74 First complete implementation of the hierarchical SAP. 2021-03-13 18:00:58 +01:00
Emil Ernerfeldt
0370e7e37d Store either density or mass properties but not both 2021-03-08 10:12:12 +01:00
Emil Ernerfeldt
05614dc471 docstring/spelling
Co-authored-by: Sébastien Crozet <sebastien@crozet.re>
2021-03-08 10:04:28 +01:00
Emil Ernerfeldt
22a402983c docstring/spelling
Co-authored-by: Sébastien Crozet <sebastien@crozet.re>
2021-03-08 10:04:21 +01:00
Emil Ernerfeldt
5154233176 docstring/spelling
Co-authored-by: Sébastien Crozet <sebastien@crozet.re>
2021-03-08 10:04:13 +01:00
Emil Ernerfeldt
018cc23639 docstring/spelling
Co-authored-by: Sébastien Crozet <sebastien@crozet.re>
2021-03-08 10:04:07 +01:00
Emil Ernerfeldt
0909077094 Use Box<Option<MassProperties>> instead to save on memory 2021-03-05 12:04:27 +01:00
Emil Ernerfeldt
64af425227 Add ability to set MassProperties for each ColliderBuilder
Fix https://github.com/dimforge/rapier/issues/132
2021-03-05 11:57:08 +01:00
Crozet Sébastien
0f0f2c344f Rename modify_contacts -> modify_solver_contacts. 2021-02-23 16:02:19 +01:00
Crozet Sébastien
babcab0bed Update the testbed to use PhysicsHooks. 2021-02-23 15:49:23 +01:00
Emil Ernerfeldt
85bc81d4fc Make clippy a bit happier 2021-02-04 13:11:04 +01:00
Crozet Sébastien
8ff2bcc3ec Add all the missing docs. 2021-01-27 14:20:14 +01:00
Crozet Sébastien
23a86c294e Allow using polylines as a collider shape. 2021-01-26 16:41:21 +01:00
Crozet Sébastien
e1f50eb6e8 Fix compilation with f64. 2021-01-25 17:33:28 +01:00
Crozet Sébastien
4799a81214 Add missing constructor for a round-triangle collider. 2021-01-25 17:22:57 +01:00
Crozet Sébastien
8f7220f03d Rename cdl to parry. 2021-01-24 11:13:44 +01:00
Crozet Sébastien
57072f3ba7 Move ColliderShape out of Rapier. 2021-01-22 18:10:54 +01:00
Crozet Sébastien
b779eb261e Fix compilation in 2D. 2021-01-22 16:43:16 +01:00
Crozet Sébastien
800b35b103 Add collider constructors for shapes obtained from convex decomposition. 2021-01-21 16:29:05 +01:00
Crozet Sébastien
98d3980db7 Allow several rules for combining friction/restitution coefficients. 2021-01-21 16:03:27 +01:00
Crozet Sébastien
0ade350b5f Use newtypes for collider, rigid-body and joint handles. 2021-01-20 16:33:42 +01:00
Crozet Sébastien
28b7866aee Switch to [u32; DIM] instead of Point<u32> for element indices. 2021-01-20 15:40:00 +01:00
Crozet Sébastien
e2006599a8 Add 3D convex decomposition example. 2021-01-20 15:15:33 +01:00
Crozet Sébastien
94c67a0c31 Support compound shapes. 2020-12-29 11:36:19 +01:00
Crozet Sébastien
8d925a02ef Add convex polygons support. 2020-12-29 11:31:59 +01:00
Crozet Sébastien
486fbd972f Add example for 3D convex polyhedron. 2020-12-29 11:31:59 +01:00
Crozet Sébastien
8fe2df126a Remove some irrelevant code. 2020-12-29 11:31:59 +01:00
Crozet Sébastien
e231bacec6 Move all the contact manifold computations out of Rapier. 2020-12-29 11:31:00 +01:00
Crozet Sébastien
cc6d1b9730 Outsource the Shape trait, wquadtree, and shape types. 2020-12-29 11:31:00 +01:00
Crozet Sébastien
9bf1321f8f Outsource the contact manifold, SAT, and some shapes. 2020-12-29 11:31:00 +01:00
Crozet Sébastien
2d4e14b869 Properly track some user-initiatied rigid-body modifications. 2020-11-25 16:28:49 +01:00
Crozet Sébastien
af39ec54d3 Remove the narrow-phase graph indices from the collider.
They are on the narrow-phase now.
2020-11-23 15:56:53 +01:00
Crozet Sébastien
71611d3e30 Reset the rigid-bodies internal links properly. 2020-11-03 15:08:06 +01:00
Crozet Sébastien
c6af248e66 Rename reset_internal_links -> reset_internal_references. 2020-11-03 14:45:50 +01:00
Crozet Sébastien
036a246141 Make cloning rigid-bodies and colliders more idiomatic.
Fix #53
2020-11-03 14:29:47 +01:00
Crozet Sébastien
cb6a7ff946 Add solver flags for controlling whether or not some contacts should be taken into account by the constraints solver. 2020-10-27 14:35:01 +01:00
Crozet Sébastien
3def91d62e Add collision groups to filter collision pairs. 2020-10-27 14:35:01 +01:00
Crozet Sébastien
49779e6c75 Add missing comment. 2020-10-27 10:54:07 +01:00
Crozet Sébastien
b5a1aaa4e5 Add a 128-bits user-data attached to colliders and rigid-bodies. 2020-10-27 10:48:31 +01:00
Crozet Sébastien
8c872dc0af Replace the Rounded<S> type by a non-generic RoundCylinder type. 2020-10-27 09:20:44 +01:00
Crozet Sébastien
08930b1238 Fix multiple warnings. 2020-10-26 16:36:07 +01:00
Crozet Sébastien
2b628f9580 Redefine capsules as a segment with a radius, allowing us to reuse the pfm_pfm_contact generator for it. 2020-10-26 15:58:30 +01:00
Crozet Sébastien
b9156302d3 Replace rounding -> round. 2020-10-20 18:57:53 +02:00
Crozet Sébastien
f7a6f433d6 Rename rounded -> round. 2020-10-20 18:14:20 +02:00
Crozet Sébastien
949e3f5384 Fix many warnings. 2020-10-20 16:22:53 +02:00
Crozet Sébastien
6495847095 Add rounded cylinder. 2020-10-20 15:57:54 +02:00
Crozet Sébastien
d513c22d33 Add cone support. 2020-10-20 14:16:01 +02:00