Fix initial body positioning

This commit is contained in:
oakes
2014-04-16 16:35:08 -04:00
parent e8a542b209
commit 010c7d2a4e

View File

@@ -214,9 +214,9 @@
body (u/get-obj e :body)]
(when (and object body)
(cond
(isa? (type body) btRigidBody)
(when-not (rigid-body! body :get-motion-state)
(rigid-body! body
(isa? (type (:object body)) btRigidBody)
(when-not (rigid-body! e :get-motion-state)
(rigid-body! e
:set-motion-state
(proxy [btMotionState] []
(getWorldTransform [world-t])