<node3d>.center

This action sets the center of the object

 

<node3d>.center(
    [x,y,z]    

)

 

[x,y,z]

The center of the object.


Remarks

This sets the origin of the ball and where it will rotate around.

Return Value

None

Example

ball = viz.add('ball.wrl')
ball.center(0,1,0)