Remove radius arg from circle-shape
This commit is contained in:
@@ -178,17 +178,13 @@ such as :on-begin-contact."
|
|||||||
`(u/call! ^ChainShape ~object ~k ~@options))
|
`(u/call! ^ChainShape ~object ~k ~@options))
|
||||||
|
|
||||||
(defn circle-shape*
|
(defn circle-shape*
|
||||||
([]
|
[]
|
||||||
(CircleShape.))
|
(CircleShape.))
|
||||||
([radius]
|
|
||||||
(doto ^CircleShape (circle-shape*)
|
|
||||||
(.setRadius radius)
|
|
||||||
(.setPosition (m/vector-2 radius radius)))))
|
|
||||||
|
|
||||||
(defmacro circle-shape
|
(defmacro circle-shape
|
||||||
"Returns a [CircleShape](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/physics/box2d/CircleShape.html)."
|
"Returns a [CircleShape](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/physics/box2d/CircleShape.html)."
|
||||||
[radius & options]
|
[& options]
|
||||||
`(u/calls! ^CircleShape (circle-shape* ~radius) ~@options))
|
`(u/calls! ^CircleShape (circle-shape*) ~@options))
|
||||||
|
|
||||||
(defmacro circle-shape!
|
(defmacro circle-shape!
|
||||||
"Calls a single method on a `circle-shape`."
|
"Calls a single method on a `circle-shape`."
|
||||||
|
|||||||
Reference in New Issue
Block a user