Commit | Line | Data |
---|---|---|
06af3aa9 | 1 | from panda3d.bullet import BulletBoxShape, BulletRigidBodyNode, BulletGhostNode |
d5932612 | 2 | from pmachines.items.item import Item |
1be87278 | 3 | |
852fb5ae | 4 | |
d5932612 | 5 | class Box(Item): |
32aa4dae | 6 | |
e1438449 FC |
7 | def __init__(self, world, plane_node, count, cb_inst, curr_bottom, repos): |
8 | super().__init__(world, plane_node, count, cb_inst, curr_bottom, repos, 'assets/gltf/box/box.gltf') | |
32aa4dae | 9 | |
d5932612 FC |
10 | def _set_phys(self): |
11 | super()._set_phys() | |
06af3aa9 | 12 | self._shape = BulletBoxShape((.5, .5, .5)) |