Johannes
01-11-2005, 12:36 PM
If I want to create Ball-Objects e.g.
class Ball:
def __init__(self,ballName):
self.speed = 0
self._name=ballName
self.x0=0
self.y0=2
self.z0=1
self.alpha=0
self.ball = viz.add('../resources/models/ball.wrl')
def translate1 (self):
self.ball.translate(self.x0, self.y0, self.z0)
def collidingwith (self, object, eins=1):
self.ball.collidingwith(object, eins)
Do I have to define all vizard-built-in-functions again (as in the code example translate or collidingwith - or is there an easier way to do it?
Johannes
class Ball:
def __init__(self,ballName):
self.speed = 0
self._name=ballName
self.x0=0
self.y0=2
self.z0=1
self.alpha=0
self.ball = viz.add('../resources/models/ball.wrl')
def translate1 (self):
self.ball.translate(self.x0, self.y0, self.z0)
def collidingwith (self, object, eins=1):
self.ball.collidingwith(object, eins)
Do I have to define all vizard-built-in-functions again (as in the code example translate or collidingwith - or is there an easier way to do it?
Johannes