357ca09ff2346109440e2c4220b2aff6f5ab07bb
1 from panda3d
.bullet
import BulletBoxShape
, BulletRigidBodyNode
, BulletGhostNode
2 from pmachines
.items
.item
import Item
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):
8 super().__init
__(world
, plane_node
, cb_inst
, curr_bottom
, repos
, 'assets/gltf/shelf/shelf.gltf', mass
=mass
, pos
=pos
, r
=r
, count
=count
, restitution
=restitution
, friction
=friction
)
10 def _set_shape(self
, apply_scale
=True):
11 self
.node
.add_shape(BulletBoxShape((1, .5, .05)))