Commit | Line | Data |
---|---|---|
d5932612 FC |
1 | from panda3d.bullet import BulletBoxShape, BulletRigidBodyNode, BulletGhostNode |
2 | from pmachines.items.item import Item | |
3 | ||
4 | ||
5 | class Shelf(Item): | |
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/shelf/shelf.gltf') | |
d5932612 | 9 | |
ea38777c FC |
10 | def _set_shape(self): |
11 | self.node.add_shape(BulletBoxShape((1, .5, .05))) |