been trying this for awhile. no matter what i set self.camera.setPos() 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 )
self.camera.setPos( 0, 0, 100 )
game = Game()
game.run()
what am i doing wrong here?
ive set the z to all sorts of different numbers and nothing changes. self.camera.getPos() returns the position i set, too.