ya2 · news · projects · code · about

basketball
[pmachines.git] / pmachines / items / basketball.py
CommitLineData
8254721d
FC
1from panda3d.bullet import BulletSphereShape, BulletRigidBodyNode, BulletGhostNode
2from pmachines.items.item import Item
3
4
5class Basketball(Item):
6
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/basketball/basketball.gltf', .4)
9
10 def _set_phys(self):
11 super()._set_phys()
12 self._shape = BulletSphereShape(1)