Target Java 6 and fix a few docstrings
This commit is contained in:
@@ -10,4 +10,5 @@
|
|||||||
:repositories [["sonatype"
|
:repositories [["sonatype"
|
||||||
"https://oss.sonatype.org/content/repositories/snapshots/"]]
|
"https://oss.sonatype.org/content/repositories/snapshots/"]]
|
||||||
:source-paths ["src"]
|
:source-paths ["src"]
|
||||||
:java-source-paths ["src-java"])
|
:java-source-paths ["src-java"]
|
||||||
|
:javac-options ["-target" "1.6" "-source" "1.6" "-Xlint:-options"])
|
||||||
|
|||||||
@@ -53,7 +53,10 @@
|
|||||||
(u/call! object# ~k ~@options)))
|
(u/call! object# ~k ~@options)))
|
||||||
|
|
||||||
(defn add-body!
|
(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]
|
[screen b-def]
|
||||||
(box-2d! screen :create-body b-def))
|
(box-2d! screen :create-body b-def))
|
||||||
|
|
||||||
|
|||||||
@@ -125,7 +125,9 @@
|
|||||||
(btSoftBodyWorldInfo.))
|
(btSoftBodyWorldInfo.))
|
||||||
|
|
||||||
(defn add-body!
|
(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]
|
[screen body]
|
||||||
(cond
|
(cond
|
||||||
(isa? (type (:object body)) btRigidBody)
|
(isa? (type (:object body)) btRigidBody)
|
||||||
|
|||||||
Reference in New Issue
Block a user