def emit(self):
shape = BulletSphereShape(0.02)
coin = BulletRigidBodyNode('coin')
coin.setMass(0.01)
coin.addShape(shape)
coin.setLinearVelocity((-10,0,-1))
np = render.attachNewNode(coin)
np.setPos(self.avatar.getPos()+(0,0,1))
base.world.attachRigidBody(coin)
# 使用间隔来移除硬币
Sequence(Wait(10),Func(coin.remove)).start()
I want to the coin be removed after seconds, but I not understand remove method.