Fix initial body positioning
This commit is contained in:
@@ -214,9 +214,9 @@
|
|||||||
body (u/get-obj e :body)]
|
body (u/get-obj e :body)]
|
||||||
(when (and object body)
|
(when (and object body)
|
||||||
(cond
|
(cond
|
||||||
(isa? (type body) btRigidBody)
|
(isa? (type (:object body)) btRigidBody)
|
||||||
(when-not (rigid-body! body :get-motion-state)
|
(when-not (rigid-body! e :get-motion-state)
|
||||||
(rigid-body! body
|
(rigid-body! e
|
||||||
:set-motion-state
|
:set-motion-state
|
||||||
(proxy [btMotionState] []
|
(proxy [btMotionState] []
|
||||||
(getWorldTransform [world-t])
|
(getWorldTransform [world-t])
|
||||||
|
|||||||
Reference in New Issue
Block a user