The step! function should only work with dynamic worlds

This commit is contained in:
oakes
2014-04-16 14:06:19 -04:00
parent 8d4abdf76a
commit 4e57316911

View File

@@ -9,7 +9,7 @@
btCollisionWorld btDefaultCollisionConfiguration btDbvtBroadphase btCollisionWorld btDefaultCollisionConfiguration btDbvtBroadphase
btSphereShape] btSphereShape]
[com.badlogic.gdx.physics.bullet.dynamics btDiscreteDynamicsWorld [com.badlogic.gdx.physics.bullet.dynamics btDiscreteDynamicsWorld
btRigidBody btRigidBody$btRigidBodyConstructionInfo btDynamicsWorld btRigidBody btRigidBody$btRigidBodyConstructionInfo
btSequentialImpulseConstraintSolver] btSequentialImpulseConstraintSolver]
[com.badlogic.gdx.physics.bullet.linearmath btMotionState])) [com.badlogic.gdx.physics.bullet.linearmath btMotionState]))
@@ -217,8 +217,8 @@
(bullet-3d! screen :remove-collision-object body)))))) (bullet-3d! screen :remove-collision-object body))))))
(defmethod c/step! (defmethod c/step!
btCollisionWorld btDynamicsWorld
[{:keys [^btCollisionWorld world delta-time max-sub-steps time-step] [{:keys [^btDynamicsWorld world delta-time max-sub-steps time-step]
:or {max-sub-steps 5 time-step (/ 1 60)} :or {max-sub-steps 5 time-step (/ 1 60)}
:as screen} :as screen}
& [entities]] & [entities]]