cant set camera position

been trying this for awhile. no matter what i set to, the camera starts out in the same place just below the character’s feet.

from direct.showbase.ShowBase import ShowBase

class Game( ShowBase ):

    def __init__( self ):

        ShowBase.__init__( self )

        self.ground = self.loader.loadModel( "models/plane" )
        self.ground.reparentTo( self.render )
        self.ground.setPos( 0, 0, 0 )

        self.testChar = self.loader.loadModel( "models/ralph/ralph.egg" )
        self.testChar.reparentTo( self.render )
        self.testChar.setPos( 0, 0, 0 ) 0, 0, 100 )

game = Game()

what am i doing wrong here?

ive set the z to all sorts of different numbers and nothing changes. returns the position i set, too.

nevermind. apparently if the mouse isnt disabled, the camera gets reset.

i sort of thought the mouse and starting camera position would be independent of each other. :\

The method “disableMouse()” is misleadingly named. It doesn’t actually disable the mouse; it is actually disabling a task that tracks the camera to the mouse input. So you need to disable this task if you want to move the camera yourself.