Commit Graph

265 Commits

Author SHA1 Message Date
Emil Ernerfeldt
581d13edbd Deprectate IntegrationParameters::new 2021-01-22 13:33:11 +01:00
Emil Ernerfeldt
95c6199a9a Remove IntegrationParameters::inv_dt and make dt pub 2021-01-22 13:32:18 +01:00
Emil Ernerfeldt
97031a6851 Reorder default() constructor order to match that of the struct
Makes it easier to verify the default values mentioned in the docstrings.
2021-01-21 18:07:28 +01:00
Emil Ernerfeldt
9b59d94bd9 Fix incorrect default value for allowed_linear_error in docstring 2021-01-21 18:06:29 +01:00
Emil Ernerfeldt
c334ced31f Replace call to IntegrationParameters::new with explicit construction
This help readability a lot
2021-01-21 17:22:10 +01:00
Sébastien Crozet
0f3d68d518 Merge pull request #83 from rezural/harness-testbed-integration
Harness testbed integration
2021-01-08 18:26:30 +01:00
rezural
5ca82eeaee enable graphics and windows related code in examples 2021-01-03 19:56:53 +11:00
rezural
34e79e9afc unify callbacks with & without graphics & window 2021-01-02 16:46:52 +11:00
rezural
ed76291fbf remove some unused imports 2020-12-31 15:39:44 +11:00
rezural
5fb9304f4c remove time from plugin.run_callbacks 2020-12-31 15:33:33 +11:00
rezural
6d5b6d778d remove time field from HarnessPlugin trait 2020-12-31 15:29:09 +11:00
rezural
c300ce760c cargo fmt 2020-12-31 15:26:11 +11:00
rezural
6f508e5d04 remove redundant time :f32 from harness callbacks. it can be access via run_state.time 2020-12-31 15:23:25 +11:00
rezural
1ac2d03fea Revert "leading _ for run_state to squash warning"
This reverts commit aaf2872e5c.
2020-12-31 13:56:37 +11:00
rezural
e11ace3831 cargo fmt 2020-12-31 13:31:30 +11:00
rezural
26af08e03c add harness_mut() to testbed 2020-12-31 13:25:05 +11:00
rezural
f782013947 make examples compile, code that accessed window & graphics via the callback is currently disabled, until that is added back in 2020-12-31 13:24:29 +11:00
rezural
d992ebc488 remove unused use 2020-12-31 13:06:29 +11:00
rezural
aaf2872e5c leading _ for run_state to squash warning 2020-12-31 13:06:13 +11:00
rezural
d51008903d remove plugin callback related code from testbed 2020-12-31 12:14:38 +11:00
rezural
47e0ad4425 Update src_testbed/testbed.rs
Co-authored-by: Sébastien Crozet <sebastien@crozet.re>
2020-12-31 12:00:33 +11:00
rezural
d75d325b49 remove comment
Co-authored-by: Sébastien Crozet <sebastien@crozet.re>
2020-12-31 11:52:24 +11:00
rezural
75c80bff5f TODO comment update
Co-authored-by: Sébastien Crozet <sebastien@crozet.re>
2020-12-31 11:47:02 +11:00
rezural
caf9d71bc7 cargo fmt 2020-12-24 21:45:00 +11:00
rezural
5fce09cb52 rework some threading code with the ui 2020-12-24 21:42:59 +11:00
rezural
31032ab969 remove thread code completely from testbed 2020-12-24 21:28:02 +11:00
rezural
975f0d149f add num_threads back in too 2020-12-24 21:25:49 +11:00
rezural
70d05cc63f fix typo with creating threadpool in RunState 2020-12-24 21:24:04 +11:00
rezural
5ffacf0a14 pass run_state instead of time to TestbedPlugin::run_callbacks 2020-12-24 20:56:11 +11:00
rezural
b1d0dc006d cargo fmt 2020-12-24 20:16:11 +11:00
rezural
baccfff4cd reenable self.highlight_hovered_body 2020-12-24 19:17:06 +11:00
rezural
cbe6baced5 remove fixme comments 2020-12-24 19:15:34 +11:00
rezural
bd6e46cdd9 remove event code 2020-12-24 18:32:07 +11:00
rezural
2de41ee5e3 change HarnessPlugin trait to add run_state to the step trait method 2020-12-24 18:31:59 +11:00
rezural
0a0c79a36b remove time & timestep_id from testbed side of things
remove events code
2020-12-24 18:27:17 +11:00
rezural
fbde6847df remove unused physics var 2020-12-24 18:02:19 +11:00
rezural
c56ebcc663 refactor testbed to use harness 2020-12-24 17:58:37 +11:00
Sébastien Crozet
fd3b4801b6 Merge pull request #81 from rezural/harness
Introduce a run harness, to make running salva with rapier easier with headless.
2020-12-22 16:23:41 +01:00
rezural
496f4e3258 remove some commented code 2020-12-21 14:56:05 +11:00
rezural
16720918aa cargo fmt 2020-12-21 04:33:25 +11:00
rezural
be07227e94 add HarnessState to callbacks, move HarnessPlugin to src_testbed/harness/plugin 2020-12-21 04:23:11 +11:00
rezural
315b84a85e add plugins
cargo fmt
2020-12-21 04:23:11 +11:00
rezural
5634c51fe6 example benchmark 2020-12-21 04:23:11 +11:00
rezural
88bddce954 harness
make harness a public mod, make harness.state public
2020-12-21 04:23:11 +11:00
Sébastien Crozet
d7cd20d3e4 Merge pull request #80 from rezural/extract-physics-state
Extract Physics into module, make new public
2020-12-20 15:47:22 +01:00
rezural
b2db9e0a06 cargo fmt 2020-12-20 14:57:33 +11:00
rezural
bcaa1d13e8 extract PhysicsState, PhysicsSnapshot & PhysicsEvents
cargo fmt

changes to make rapier compile
2020-12-20 14:45:59 +11:00
rezural
ff28b90833 make new public on PhysicsState 2020-12-20 14:43:42 +11:00
Crozet Sébastien
2c8e6b29d6 Release v0.4.2 2020-12-02 11:49:49 +01:00
Sébastien Crozet
d9695ca977 Merge pull request #73 from dimforge/mass_props_setter
Add a RigidBody::set_mass_properties method.
2020-12-02 11:48:23 +01:00