Help me understand

Do all 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)*math.sin(angleradians),-20.0*math.cos(angleradians),3), 0, 0)
  return Task.cont

taskMgr.add(SpinCameraTask, "SpinCameraTask")

With,0,3), 0, 0)

and it was no different then,1000,1000), 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,-50,10)

and tried changing the numbers and it never changes the camera position.

Please help me understand this.

There is already a task that automatically resets the camera position every frame according to the mouse controls. While it is running, you can’t change the camera position yourself and expect it to stick.

Just call:



OK, if I have this right;,0,0)

Sets the camera’s position to (X,Y,Z) to (0,0,0) where the X Axis is the bottom of the monitor, the Z Axis is the vertical side of the monitor and the Y Axis is going straight into the monitor?, -45, 0)

Angles the camera down (Along the Y Axis) by 45 degrees?


Roughly, yes. I assume that’s what you’re seeing.