Commit Graph

149 Commits

Author SHA1 Message Date
Sébastien Crozet 22f21c14b8 Testbed: add a constructor that calls a custom closure with bevy’s App 2022-03-20 21:49:16 +01:00
Sébastien Crozet 31e7d95ff9 Add f64 testbed 2022-01-23 16:48:24 +01:00
Sébastien Crozet 0703e5527f Fix some solver issues
- Fix the wrong codepath taken  by the solver for contacts involving a collider without parent.
- Properly adress the non-linear treatment of the friction direction
- Simplify the sleeping strategy
- Add an impulse resolution multiplier
2022-01-16 16:52:40 +01:00
Sébastien Crozet a0d197e691 Update the testbed to use bevy 0.6 2022-01-09 20:41:41 +01:00
Sébastien Crozet f74b8401ad Implement multibody joints and the new solver 2022-01-02 16:58:36 +01:00
Sébastien Crozet 7cda2f05e2 Testbed: don’t panic when trying to render an unknown custom shape. 2021-10-20 16:58:10 +02:00
Sébastien Crozet b59e813fd3 Remove debug print 2021-10-14 12:14:34 +02:00
Sébastien Crozet fe87e2d586 Fix testbed rendering of colliders without parent 2021-10-14 12:14:34 +02:00
Sébastien Crozet d858ae4c4e Make the 2D add-remove demo more intereting. 2021-09-12 01:49:09 -07:00
Sébastien Crozet 48d0df11d7 Release v0.11.0 2021-08-08 19:19:16 +02:00
rezural 75a677c58a clear plugin graphics when examples changed, then clear the plugins vec 2021-07-27 15:09:31 +02:00
rezural 3b0d256464 make collider Option<> on EntityWithGraphics 2021-07-08 10:07:42 +02:00
rezural 53700db860 add opacity to EntityWithGraphics 2021-07-08 10:07:42 +02:00
rezural 9f8d9769f8 add despawn method to EntityWithGraphics 2021-07-08 10:07:42 +02:00
rezural 0e1215e4ed add update_ui to TestbedPlugin 2021-07-08 10:07:42 +02:00
rezural 7c249c873d enable clear_graphics and run_callbacks agin
update plugin signature to recieve bevy structs, add Arc<Mutex<>> around gfx_components, we we can get shared mutable access
add prefab_meshes() access function

Remove Arc<Mutex<>>
2021-07-08 10:07:42 +02:00
Sébastien Crozet d3d998e91e Merge pull request #193 from rezural/egui-focus
Testbed: check if the egui context wants pointer focus, disable orbit camera if so.
2021-06-02 17:18:35 +02:00
Crozet Sébastien e0e341214c Update dependencies 2021-06-02 16:00:23 +02:00
rezural a49605bd9b check if the egui context wants pointer focus, disable orbit camera if so. this disables egui interactions being sent to the orbital camera 2021-05-29 13:00:01 +10:00
Crozet Sébastien 1bef66fea9 Add prelude + use vectors for setting linvel/translation in builders 2021-05-25 11:00:13 +02:00
Crozet Sébastien 47139323e0 Fix compilation with the parallel feature enabled. 2021-05-17 10:48:51 +02:00
Crozet Sébastien abb4742758 Fix warnings when compiling tests. 2021-05-17 09:46:07 +02:00
Crozet Sébastien 1a84bf2af3 Replace Kiss3d by Bevy for the testbed renderer. 2021-05-16 17:49:20 +02:00
Crozet Sébastien 2dfbd9ae92 Add comments. 2021-04-30 11:37:58 +02:00
Crozet Sébastien 5cf805075e Fix compilation of the parallel version 2021-04-29 12:09:35 +02:00
Crozet Sébastien c32da78f2a Split rigid-bodies and colliders into multiple components 2021-04-26 18:00:50 +02:00
Crozet Sébastien 2006919347 Add the ability to pass a custom filter to all the QueryPipeline queries. 2021-04-01 11:02:48 +02:00
Crozet Sébastien 1b073e98b4 Remove the IntegrationParameters field we don't use. 2021-03-31 18:41:02 +02:00
Crozet Sébastien e9f6384081 Fix the parallel solver to work properly with CCD. 2021-03-31 10:53:44 +02:00
Crozet Sébastien 88933bd431 Run the position solver after the CCD motion clamping. 2021-03-30 17:11:52 +02:00
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 a733f97028 Implement the ability to run multiple CCD substeps. 2021-03-29 17:21:49 +02:00
Crozet Sébastien 7306821c46 Attenuate the warmstart impulse for CCD contacts.
CCD contacts result in very strong, instantaneous, impulses. So it is preferable to attenuate their contribution to subsequent timesteps to avoid overshooting.
2021-03-28 11:27:07 +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 a967ace7d4 Start implementing SAPLayer creation and insertion. 2021-03-08 18:27:06 +01:00
Crozet Sébastien bed47a82e7 Projection friction impulses on an implicit cone instead of a pyramidal approximation. 2021-03-07 11:44:19 +01:00
Crozet Sébastien babcab0bed Update the testbed to use PhysicsHooks. 2021-02-23 15:49:23 +01:00
Crozet Sébastien 00706e8b36 Introduce the PhysicsHook trait used for both contact filtering and contact modification. 2021-02-23 11:24:54 +01:00
Crozet Sébastien e9f17f32e8 Complete the implementation of non-simd joint motor for the revolute joint. 2021-02-19 15:21:25 +01:00
Crozet Sébastien 5b80c4efbf Start experimenting with a generic joint implementation for joint drives. 2021-02-11 15:58:46 +01:00
Crozet Sébastien e24d73a255 Don't serialize solver contacts + remove erased-serde dependency. 2021-02-08 10:47:58 +01:00
Crozet Sébastien a3324f8513 Fix compilation of the 3D testbed. 2021-01-26 16:59:30 +01:00
Crozet Sébastien 23a86c294e Allow using polylines as a collider shape. 2021-01-26 16:41:21 +01:00
Crozet Sébastien 8f7220f03d Rename cdl to parry. 2021-01-24 11:13:44 +01:00
Crozet Sébastien 90db26eb50 Fix warnings in tests and testbed. 2021-01-23 13:34:03 +01:00
Crozet Sébastien 00caa7ce35 Fix warnings and 2D compilation when parallelism is ON but SIMD is OFF. 2021-01-23 13:02:06 +01:00
Crozet Sébastien b779eb261e Fix compilation in 2D. 2021-01-22 16:43:16 +01:00
Crozet Sébastien 99c2184e13 Fix regressions introduced by the merge with master. 2021-01-22 16:33:55 +01:00
Crozet Sébastien cf52e01308 Merge branch 'master' into split_geom
# Conflicts:
#	examples2d/sensor2.rs
#	examples3d/sensor3.rs
#	src/dynamics/integration_parameters.rs
#	src/dynamics/solver/parallel_island_solver.rs
#	src/dynamics/solver/velocity_constraint.rs
#	src/dynamics/solver/velocity_ground_constraint.rs
#	src_testbed/nphysics_backend.rs
#	src_testbed/physx_backend.rs
#	src_testbed/testbed.rs
2021-01-22 16:10:24 +01:00
Emil Ernerfeldt 315493ebfb IntegrationParameters: deprectate dt() and inv_dt() methods 2021-01-22 13:38:59 +01:00