File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -54,14 +54,22 @@ Update your code as follows:
5454 :language: cpp
5555 :linenos:
5656
57- The procedure ``taskMgr.add() `` tells Panda3D's task manager to call the
58- procedure ``spinCameraTask() `` every frame. This is a procedure that we have
59- written to control the camera. As long as the procedure ``spinCameraTask() ``
60- returns the constant ``AsyncTask.DS_cont ``, the task manager will continue to
61- call it every frame.
57+ .. only :: python
58+
59+ The procedure :py:meth: `taskMgr.add() ` tells Panda3D's task manager to call
60+ the procedure ``spinCameraTask() `` every frame. This is a procedure that we
61+ have written to control the camera. As long as the procedure
62+ ``spinCameraTask() `` returns the constant ``Task.cont ``, the task manager
63+ will continue to call it every frame.
6264
6365.. only :: cpp
6466
67+ The procedure :meth: `taskMgr->add() <.AsyncTaskManager.add> ` tells Panda3D's
68+ task manager to call the procedure ``spinCameraTask() `` every frame. This is
69+ a procedure that we have written to control the camera. As long as the
70+ procedure ``spinCameraTask() `` returns the constant ``AsyncTask.DS_cont ``,
71+ the task manager will continue to call it every frame.
72+
6573 The object passed to :meth: `taskMgr->add() <.AsyncTaskManager.add> ` is an
6674 :class: `.AsyncTask ` object. We can use ``GenericAsyncTask `` to wrap a global
6775 function or static method around a task. We can also pass an additional
You can’t perform that action at this time.
0 commit comments