ya2 · news · projects · code · about

teeter tooter
[pmachines.git] / pmachines / items / box.py
index 88fed1678f9bbc67af3510461ceea279282ff1f7..ac15d16cfc7800cdf8775b41858da013fcc55404 100644 (file)
@@ -7,6 +7,5 @@ class Box(Item):
     def __init__(self, world, plane_node, count, cb_inst, curr_bottom, repos):
         super().__init__(world, plane_node, count, cb_inst, curr_bottom, repos, 'assets/gltf/box/box.gltf')
 
-    def _set_phys(self):
-        super()._set_phys()
-        self._shape = BulletBoxShape((.5, .5, .5))
+    def _set_shape(self):
+        self.node.add_shape(BulletBoxShape((.5, .5, .5)))