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

@@ -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)