pbox2d 0.1.1-java → 0.1.2-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/box2d.jar +0 -0
- data/lib/pbox2d.rb +2 -1
- data/lib/pbox2d/box2d.rb +8 -0
- data/lib/pbox2d/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ceb2a6aa9dc572cc3f0cf0b49c87bb2cadbf9053
|
4
|
+
data.tar.gz: 6ba76695c669aa7417606b1cfb3741ddfb97a33e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ddb97cbf0c590ea9ddd0f6eb9ed6e3cdda08cee429a38b77ece28693223205bd572934368ccf99acfb279a521c8fef734ff772ed13e415e0d1f3b3c8c81c733
|
7
|
+
data.tar.gz: a5171696554e9c4eb7091661e0ca9a522d0997c91b26969a39d033631beff4a1d44856c212d9d7eab8e4862fe9a8eb187908891e78912f8e1fdaac89239dfdb4
|
data/README.md
CHANGED
@@ -43,7 +43,7 @@ box2d.create_world
|
|
43
43
|
box2d.gravity(0, -20) # to set a custom gravity
|
44
44
|
```
|
45
45
|
That's about all you need to know, use the box2d instance to access the jbox2d physics world. Ordinarily (with jbox2d) you need to set some other parameters, and call `box2d.step` in the draw loop, to update the physics world.
|
46
|
-
To make things dead simple, we have set those parameters to sensible defaults, and call `step` in the draw loop for you (under the hood using java reflection). The other thing you should know is there is a mismatch between the physics world and the sketch world (processing got it wrong to my view, down is up), further the scaling is different. This is why you need to keep translating from one worlds (coordinates) to the others coordinates, Dan Shiffman explains it in his [Nature of Code book][], Chapter 5 physics libraries, not that I've read it, I prefer to read code or [Sandi Metz][].
|
46
|
+
To make things dead simple, we have set those parameters to sensible defaults, and call `step` in the draw loop for you (under the hood using java reflection). The other thing you should know is there is a mismatch between the physics world and the sketch world (processing got it wrong to my view, down is up), further the scaling is different. This is why you need to keep translating from one worlds (coordinates) to the others coordinates, Dan Shiffman explains it in his [Nature of Code book][], Chapter 5 physics libraries, not that I've read it, I prefer to read code or [Sandi Metz][]. The really brave or adventurous should probably get [this book].
|
47
47
|
|
48
48
|
[JBox2D Home]:http://www.jbox2d.org/
|
49
49
|
[JBox2D on github]:https://github.com/jbox2d/jbox2d
|
@@ -53,3 +53,4 @@ To make things dead simple, we have set those parameters to sensible defaults, a
|
|
53
53
|
[jruby magic]:https://github.com/jruby/jruby/wiki/CallingJavaFromJRuby
|
54
54
|
[Nature of Code book]:http://natureofcode.com/
|
55
55
|
[Sandi Metz]:http://www.poodr.com/
|
56
|
+
[this book]:http://www.crcpress.com/product/isbn/9781466565760
|
data/lib/box2d.jar
CHANGED
Binary file
|
data/lib/pbox2d.rb
CHANGED
data/lib/pbox2d/box2d.rb
ADDED
data/lib/pbox2d/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pbox2d
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Martin Prout
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +66,7 @@ files:
|
|
66
66
|
- README.md
|
67
67
|
- Rakefile
|
68
68
|
- lib/pbox2d.rb
|
69
|
+
- lib/pbox2d/box2d.rb
|
69
70
|
- lib/pbox2d/version.rb
|
70
71
|
- lib/box2d.jar
|
71
72
|
- lib/jbox2d-library-2.2.1-ds.jar
|