Do all base.camera commands need to be inside a task?
In the tutorials I attempted to replace
#Task to move the camera
def SpinCameraTask(task):
angledegrees = task.time * 6.0
angleradians = angledegrees * (math.pi / 180.0)
base.camera.setPos(20*math.sin(angleradians),-20.0*math.cos(angleradians),3)
base.camera.setHpr(angledegrees, 0, 0)
return Task.cont
taskMgr.add(SpinCameraTask, "SpinCameraTask")
With
base.camera.setPos(0,0,3)
base.camera.setHpr(0, 0, 0)
and it was no different then
base.camera.setPos(1000,1000,1000)
base.camera.setHpr(0, 0, 0)
They were both the default camera position in the ground.
I have tried a few different code snippits I found on the web with
base.camera.setPos(10,-50,10)
and tried changing the numbers and it never changes the camera position.
Please help me understand this.
Sammual