(self)
return target - ball
Returns the vector from the ball to the target.
Returns the vector from the ball to the target.
Returns the vector from the ball to the target .
def ball_to_target(self):
    """Returns the vector from the ball to the target."""
    target = self.named.data.site_xpos['target', ['x', 'z']]
    ball = self.named.data.xpos['ball', ['x', 'z']]
    return target - ball
def ball_to_target ( self ) : target = self . named . data . site_xpos [ 'target' , [ 'x' , 'z' ] ] ball = self . named . data . xpos [ 'ball' , [ 'x' , 'z' ] ] return target - ball