![]() |
#4
|
|||
|
|||
self.__moveScale and self.__turnScale are private to the FlyNavigate class and when you try to set those in your MyFlyNavigation class your are creating new instances of them and so the viewpoint is not affected.
When you call the sensitivity method it works Code:
vizcam.FlyNavigate.sensitivity(self, 1.0, turnScale) keep track of both moveScale and turnScale in your class and then pass them both to FlyNavigate.sensitivity Code:
def __init__(self): # Default movement keys vizcam.FlyNavigate.__init__(self,'w','s','a','d') self.__moveScale = 1 self.__turnScale = 1 Code:
def setMoveSensitivity(self, moveScale): self.__moveScale = moveScale vizcam.FlyNavigate.sensitivity(self, self.__moveScale, self.__turnScale) def setLookSensitivity(self, turnScale): self.__turnScale = turnScale vizcam.FlyNavigate.sensitivity(self, self.__moveScale, self.__turnScale) |
Thread Tools | |
Display Modes | Rate This Thread |
|
|