Sha256: 83c5d5123377c4c8a02917ddfddd96e06a6ddd1b2d6977d6401676ca681ba9ff

Contents?: true

Size: 514 Bytes

Versions: 4

Compression:

Stored size: 514 Bytes

Contents

---

layout: post
title:  "step_options"
permalink: /methods/step_options/
---
Need not be called directly especially when using [WorldBuilder][world_builder]

```ruby
def step_options(args = {})
  default_step.merge(args)
   # now call the java method
  set_step(args[:time_step], args[:velocity_iter], args[:position_iter])
end
```

The default options

```ruby
def default_step
  { time_step: 1.0 / 60, velocity_iter: 8, position_iter: 10 }
end
```

[world_builder]:{{ site.github.url }}/modules/world_builder/

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pbox2d-1.0.3-java docs/_methods/step_options.md
pbox2d-1.0.2-java docs/_methods/step_options.md
pbox2d-1.0.1-java docs/_methods/step_options.md
pbox2d-1.0.0-java docs/_methods/step_options.md