From 8288139b3287d3bd5a42a1b9d11d3e90e06991e7 Mon Sep 17 00:00:00 2001 From: oakes Date: Sat, 23 Aug 2014 17:18:26 -0400 Subject: [PATCH] Add 2d physics functions to the docstring --- src/play_clj/core.clj | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/play_clj/core.clj b/src/play_clj/core.clj index 7d3180c..926191b 100644 --- a/src/play_clj/core.clj +++ b/src/play_clj/core.clj @@ -274,6 +274,18 @@ via the screen map. :on-end-contact (fn [screen entities] (println (:contact screen)) ; the Contact - http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/physics/box2d/Contact.html + entities) + ; called between each use of `step!` before the collision is processed + :on-pre-solve + (fn [screen entities] + (println (:contact screen)) ; the Contact - http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/physics/box2d/Contact.html + (println (:impulse screen)) ; the ContactImpulse - http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/physics/box2d/ContactImpulse.html + entities) + ; called between each use of `step!` after the collision is processed + :on-post-solve + (fn [screen entities] + (println (:contact screen)) ; the Contact - http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/physics/box2d/Contact.html + (println (:old-manifold screen)) ; the Manifold - http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/physics/box2d/Manifold.html entities)) ; 3D physics contact (for play-clj.g3d-physics)