Adds a control point.
A control point is used in conjunction with AnimationPath. The object created here is a point along the animation path.
ball = viz.addChild('beachball.osgb')
viz.MainView.setPosition([0,2,-8])
path = viz.addAnimationPath()
path.play()
path.setLoopMode(viz.CIRCULAR)
path.setAutoRotate(viz.ON)
positions = [ [0,0,2], [2,0,0], [0,0,-2], [-2,0,0] ]
for t,pos in enumerate(positions):
b = viz.addChild('beachball.osgb')
b.setPosition(pos)
b.alpha(0.2)
cp = viz.addControlPoint(pos=positions[t])
path.addControlPoint(t+1,cp)
viz.link(path,ball)