IntegrationParameters: deprectate dt() and inv_dt() methods

This commit is contained in:
Emil Ernerfeldt
2021-01-22 13:38:59 +01:00
parent 581d13edbd
commit 315493ebfb
8 changed files with 10 additions and 9 deletions

View File

@@ -211,7 +211,7 @@ impl Box2dWorld {
counters.step_started();
self.world.step(
params.dt(),
params.dt,
params.max_velocity_iterations as i32,
params.max_position_iterations as i32,
);

View File

@@ -238,7 +238,7 @@ impl Harness {
self.events.poll_all();
self.state.time += self.physics.integration_parameters.dt();
self.state.time += self.physics.integration_parameters.dt;
self.state.timestep_id += 1;
}

View File

@@ -143,7 +143,7 @@ impl NPhysicsWorld {
.max_velocity_iterations = params.max_velocity_iterations;
self.mechanical_world
.integration_parameters
.set_dt(params.dt());
.set_dt(params.dt);
counters.step_started();
self.mechanical_world.step(

View File

@@ -396,7 +396,7 @@ impl PhysxWorld {
pub fn step(&mut self, counters: &mut Counters, params: &IntegrationParameters) {
counters.step_started();
self.scene.step(params.dt(), true);
self.scene.step(params.dt, true);
counters.step_completed();
}