ya2 · news · projects · code · about

ending condition
[pmachines.git] / pmachines / items / box.py
CommitLineData
06af3aa9 1from panda3d.bullet import BulletBoxShape, BulletRigidBodyNode, BulletGhostNode
d5932612 2from pmachines.items.item import Item
1be87278 3
852fb5ae 4
d5932612 5class Box(Item):
32aa4dae 6
b41381b2
FC
7 def __init__(self, world, plane_node, cb_inst, curr_bottom, repos, mass=1, pos=(0, 0, 0), r=0, count=0):
8 super().__init__(world, plane_node, cb_inst, curr_bottom, repos, 'assets/gltf/box/box.gltf', mass=mass, pos=pos, r=r, count=count)
32aa4dae 9
ea38777c
FC
10 def _set_shape(self):
11 self.node.add_shape(BulletBoxShape((.5, .5, .5)))