Commit Graph

364 Commits

Author SHA1 Message Date
Sébastien Crozet
9964007269 feat: add some additional perf counters 2024-04-30 23:10:46 +02:00
Sébastien Crozet
09af4313fa Fix reported contact impulse in the contact force event
Address https://github.com/dimforge/rapier.js/issues/261
2024-03-23 16:28:48 +01:00
Sébastien Crozet
cd9fb8342d feat: add RigidBody::copy_from and Collider::copy_from
Closes #595
2024-03-23 14:19:52 +01:00
Sébastien Crozet
6886f8f207 feat: add RigidBody::predict_position_using_velocity
Fix #601
2024-03-23 11:10:57 +01:00
Sébastien Crozet
b00113ed2f fix: implement linear-coupled-motor constraint between two dynamic bodies
Fix #602
2024-03-23 10:34:01 +01:00
Sébastien Crozet
da92e5c283 Fix clippy and enable clippy on CI 2024-01-27 17:13:08 +01:00
Sébastien Crozet
6cee6b01f2 Merge pull request #571 from AnonymousAcid7787/fix-Setting-the-motor-position-of-a-Spherical-multibody-joint-is-broken
Fix #416 Update spherical joint motor position
2024-01-24 23:26:42 +01:00
AnonymousAcid
2ed34bacf4 Fix dimforge#416 - update ball joint motor pos 2024-01-24 22:59:14 +01:00
Sébastien Crozet
46b244167c feat!: rename narrow-phase methods for more clarity.
Renames `contacts_with` to`contact_pairs_with`; and `intersections_with` to `intersection_pairs_with`.
2024-01-24 22:51:30 +01:00
Sébastien Crozet
d1fc90c150 feat: rework solver parameters to make it easy to recover the old behaviors 2024-01-24 21:57:54 +01:00
Sébastien Crozet
6cb727390a chore: more CI fixes 2024-01-22 21:29:51 +01:00
Sébastien Crozet
bef72df32c chore: CI fixes 2024-01-22 21:06:33 +01:00
Sébastien Crozet
9b87f06a85 feat: implement new "small-steps" solver + joint improvements 2024-01-21 21:02:27 +01:00
Sébastien Crozet
76557448d7 fix: also apply joint limits in case of equality 2023-12-10 21:51:57 +01:00
Sébastien Crozet
fef7f0f92a fix more 2D angular motor/limits jacobians 2023-12-10 21:39:11 +01:00
Sébastien Crozet
a05622cfe9 fix: avoid perpetual movement when the target ang motor position is overshot 2023-12-10 12:43:13 +01:00
pellico
9f3b5c8642 Fixed formatting of modified files. 2023-12-10 12:43:13 +01:00
pellico
6432909110 Fix #378 Added one example join_motor_position 2023-12-10 12:43:13 +01:00
Dzmitry Malyshau
e4bf6914c7 Fix check for motor constraints on angular DoF 2023-12-01 23:35:17 -08:00
Sébastien Crozet
dfb4f2a1aa Merge pull request #505 from mrDIMAS/master
`user_data` for joints
2023-09-09 12:59:50 +02:00
Sébastien Crozet
7d2111d0b9 Merge pull request #511 from Triuman/master
fix lock_translations & lock_rotations doesn't work both ways
2023-09-09 12:58:38 +02:00
Bruce Mitchener
4c2d18a0cd docs: Minor fixes. 2023-08-28 11:05:45 +07:00
Triuman
fd0c8d3dc7 fix lock_rotations doesn't work both ways 2023-08-10 09:29:11 +02:00
Triuman
f7b02f2a1d fix lock_translations doesn't work both ways 2023-08-10 09:26:27 +02:00
Dmitry
64b0d08c14 user_data for joints 2023-07-15 23:14:44 +03:00
MrGunflame
6d72192955 Fix doc-links for ColliderBuilder and RigidBodyBuilder 2023-03-30 17:15:43 +02:00
Sébastien Crozet
b6fdfd11ad Add missing import 2023-03-26 15:57:31 +02:00
Sébastien Crozet
7cca677523 Add methods to customize a SphericalJoint’s local reference frames. 2023-03-26 15:44:59 +02:00
Sébastien Crozet
789555e9e3 Fix docs for method setting kinematic translation/rotation 2023-03-26 15:18:39 +02:00
fabriceci
4ff84319a0 Allow customising the time until sleep for a rigid body 2023-01-23 22:18:35 +01:00
Sébastien Crozet
89fc31f996 Give access to the world-space mass properties of rigid-bodies 2023-01-15 12:24:14 +01:00
Sébastien Crozet
d2ebb25c22 Add accessor to get the locked axes of a rigid-body 2023-01-15 12:24:07 +01:00
Sébastien Crozet
9b5ccb95e7 Update dependencies 2023-01-15 12:17:10 +01:00
Sébastien Crozet
c77ed7c9bf Small coding style fix 2023-01-01 16:51:40 +01:00
fabriceci
95cd7d5c9c Adds methods to retrieve forces added by the user. 2023-01-01 16:49:52 +01:00
Sébastien Crozet
cc0c982a5b Merge pull request #415 from Wolftousen/master
Add Rope Joints
2022-12-18 15:12:19 +01:00
Sébastien Crozet
0207f8cf96 Properly take initial sleeping state set by the user when creating a rigid-body 2022-12-11 17:47:42 +01:00
Sébastien Crozet
6f866329a6 Fix wasm build 2022-12-11 15:38:18 +01:00
Sébastien Crozet
849f398031 Add a dynamic ray-cast vehicle controller 2022-12-11 15:22:36 +01:00
Sébastien Crozet
683baf6bf7 Allow the PhysicsPipeline and CollisionPipeline to update the QueryPipeline incrementally 2022-12-11 15:20:33 +01:00
Sébastien Crozet
46d976d97b Allow disabling colliders, rigid-bodies and impulse joints 2022-12-11 15:20:33 +01:00
Wolftousen
c713f45ca0 adding 3d rope joint 2022-11-05 22:42:50 -04:00
Wolftousen
150b113a18 Adding a Rope Joint 2022-11-04 23:47:54 -04:00
Sébastien Crozet
d73508602e Auto-update a rigid-body’s world mass-properties when the user sets their position 2022-08-25 10:21:17 +02:00
Sébastien Crozet
68d250f0ad Merge pull request #380 from dimforge/set-rotation
Make Collider::set_rotation and RigidBody::set_rotation take a rotation instead of an axis-angle.
2022-08-09 10:06:20 +02:00
Sébastien Crozet
a19c6131ff Make Collider::set_rotation and RigidBody::set_rotation take a rotation instead of an axis-angle. 2022-08-09 09:26:12 +02:00
Sébastien Crozet
4025f62314 Rename allowed_translation/rotation to enabled_translation/rotation 2022-07-08 17:16:44 +02:00
Sébastien Crozet
72c2da5554 Fix 2D build 2022-07-08 12:01:04 +02:00
Sébastien Crozet
8c707ef02d cargo fmt 2022-07-08 11:55:44 +02:00
Sébastien Crozet
efaf16aaea Rename restrict_translation/rotation to set_allowed_translation/rotation 2022-07-08 11:48:31 +02:00