Target Java 6 and fix a few docstrings

This commit is contained in:
oakes
2014-04-19 20:57:45 -04:00
parent b7967992c6
commit c60abc6a96
3 changed files with 9 additions and 3 deletions

View File

@@ -10,4 +10,5 @@
:repositories [["sonatype"
"https://oss.sonatype.org/content/repositories/snapshots/"]]
:source-paths ["src"]
:java-source-paths ["src-java"])
:java-source-paths ["src-java"]
:javac-options ["-target" "1.6" "-source" "1.6" "-Xlint:-options"])

View File

@@ -53,7 +53,10 @@
(u/call! object# ~k ~@options)))
(defn add-body!
"Adds the `body` to the `screen` for physics simulations and returns it."
"Creates a body from the `b-def`, adds it to the `screen` for physics
simulations and returns it.
(add-body! screen (body-def :dynamic))"
[screen b-def]
(box-2d! screen :create-body b-def))

View File

@@ -125,7 +125,9 @@
(btSoftBodyWorldInfo.))
(defn add-body!
"Adds the `body` to the `screen` for physics simulations and returns it."
"Adds the `body` to the `screen` for physics simulations and returns it.
(add-body! screen (rigid-body info))"
[screen body]
(cond
(isa? (type (:object body)) btRigidBody)