Sha256: fb5c98121c448c76269284517d0b511583f7add026d61f49abed3fabcd28de4d

Contents?: true

Size: 639 Bytes

Versions: 2

Compression:

Stored size: 639 Bytes

Contents

---
layout: post
title:  "init_options"
permalink: /methods/init_options/
---

### init_options method ###
Need not called directly if using [WorldBuilder][world_builder]

```ruby
def init_options(args = {})
    args = defaults.merge(args)
    set_options(args[:scale],
                args[:gravity].to_java(Java::float),
                args[:warm],
                args[:continuous]
               )
end
```

### related default options ###
Provides defaults for init_options

```ruby
def defaults
   { scale: 10.0, gravity: [0, -10], warm: true, continuous: true }
end
```

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pbox2d-1.0.3-java docs/_methods/init_options.md
pbox2d-1.0.2-java docs/_methods/init_options.md