aboutsummaryrefslogtreecommitdiff
path: root/examples3d/one_way_platforms3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples3d/one_way_platforms3.rs')
-rw-r--r--examples3d/one_way_platforms3.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples3d/one_way_platforms3.rs b/examples3d/one_way_platforms3.rs
index 3b2715a..1a5704c 100644
--- a/examples3d/one_way_platforms3.rs
+++ b/examples3d/one_way_platforms3.rs
@@ -90,7 +90,7 @@ pub fn init_world(testbed: &mut Testbed) {
* depending on their position.
*/
testbed.add_callback(move |graphics, physics, _, run_state| {
- if run_state.timestep_id % 50 == 0 && physics.bodies.len() <= 7 {
+ if run_state.timestep_id % 200 == 0 && physics.bodies.len() <= 7 {
// Spawn a new cube.
let collider = ColliderBuilder::cuboid(1.0, 2.0, 1.5);
let body = RigidBodyBuilder::dynamic().translation(vector![0.0, 6.0, 20.0]);