Commit | Line | Data |
---|---|---|
8254721d FC |
1 | from panda3d.bullet import BulletSphereShape, BulletRigidBodyNode, BulletGhostNode |
2 | from pmachines.items.item import Item | |
3 | ||
4 | ||
5 | class Basketball(Item): | |
6 | ||
ef3c36bf FC |
7 | def __init__(self, world, plane_node, count, cb_inst, curr_bottom, repos, mass=1, pos=(0, 0, 0), r=0, count=0): |
8 | super().__init__(world, plane_node, count, cb_inst, curr_bottom, repos, 'assets/gltf/basketball/basketball.gltf', .4, mass=mass, pos=pos, r=r, count=count) | |
8254721d | 9 | |
ea38777c FC |
10 | def _set_shape(self): |
11 | self.node.add_shape(BulletSphereShape(1)) |