def AxesTask( self, task ): # Position axes 30 pixels from bottom left corner #posY = 100# self.GetSize()[1] self.axes.setPos( Vec3( 30, 0, -30 ) ) # Set rotation to inverse of camera rotation cameraQuat = Quat( self.getQuat() ) cameraQuat.invertInPlace() self.axes.setQuat( cameraQuat ) return Task.cont
def OnUpdate( self, task ): # Position axes 30 pixels from top left corner self.axes.setPos( Vec3( 30, 0, -30 ) ) # Set rotation to inverse of camera rotation cameraQuat = Quat( self.getQuat() ) cameraQuat.invertInPlace() self.axes.setQuat( cameraQuat )
def OnUpdate(self, task): # Position axes 30 pixels from top left corner self.axes.setPos(Vec3(30, 0, -30)) # Set rotation to inverse of camera rotation cameraQuat = Quat(self.getQuat()) cameraQuat.invertInPlace() self.axes.setQuat(cameraQuat)