ya2 · news · projects · code · about

retrieve test coordinates
[pmachines.git] / logics / items / shelf.py
CommitLineData
d5932612 1from panda3d.bullet import BulletBoxShape, BulletRigidBodyNode, BulletGhostNode
b35b1f62 2from logics.items.item import Item
d5932612
FC
3
4
5class Shelf(Item):
6
32cd89ca 7 def __init__(self, world, plane_node, cb_inst, curr_bottom, repos, mass=1, pos=(0, 0, 0), r=0, count=0, restitution=.5, friction=.6):
420ce99a 8 super().__init__(world, plane_node, cb_inst, curr_bottom, repos, 'assets/models/bam/shelf/shelf.bam', mass=mass, pos=pos, r=r, count=count, restitution=restitution, friction=friction)
d5932612 9
80d579b1 10 def _set_shape(self, apply_scale=True):
ea38777c 11 self.node.add_shape(BulletBoxShape((1, .5, .05)))