ya2 · news · projects · code · about

domino
[pmachines.git] / pmachines / items / domino.py
diff --git a/pmachines/items/domino.py b/pmachines/items/domino.py
new file mode 100644 (file)
index 0000000..4a7cc03
--- /dev/null
@@ -0,0 +1,12 @@
+from panda3d.bullet import BulletBoxShape, BulletRigidBodyNode, BulletGhostNode
+from pmachines.items.item import Item
+
+
+class Domino(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/domino/domino.gltf')
+
+    def _set_phys(self):
+        super()._set_phys()
+        self._shape = BulletBoxShape((.1, .25, .5))