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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f1ff7faf9a702b3e1ee652f347d032cd4e6cdc7
4
- data.tar.gz: f4836adb4babc6fff609be836f937ce59a3842ca
3
+ metadata.gz: ceb2a6aa9dc572cc3f0cf0b49c87bb2cadbf9053
4
+ data.tar.gz: 6ba76695c669aa7417606b1cfb3741ddfb97a33e
5
5
  SHA512:
6
- metadata.gz: eb491fec5aba8dc0cad846efe708e9640f9e46b6a06897c28ea8e8efb9af41554fe8843aa7549c73c99a0ff2c81c2b261dcdd2bfb82eb6a983eafcaba0bdec41
7
- data.tar.gz: 86fcbff1955f248537a9b232f132c1d34e30f7d81ff6f92247a9cb359b7530b1e5b5381c8979a8399e71703be349f87b3836780fbd2f24dffc9dff87e71f05f2
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
@@ -24,5 +24,6 @@ JointDef = PB::JointDef
24
24
  FixtureDef = PB::FixtureDef
25
25
  PolygonShape = PB::PolygonShape
26
26
  CircleShape = PB::CircleShape
27
+ ChainShape = PB::ChainShape
27
28
 
28
- Box2D = PB::Box2DProcessing
29
+ require_relative 'pbox2d/box2d.rb'
@@ -0,0 +1,8 @@
1
+ require_relative 'version'
2
+
3
+ class Box2D < Java::ProcessingBox2d::Box2DProcessing
4
+
5
+ def version
6
+ format("pbox2d version %s", Pbox2D::VERSION)
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module Pbox2D
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
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.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-05 00:00:00.000000000 Z
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