Skip to content

Conversation

ArsThaumaturgis
Copy link
Contributor

In the text of this page, the reader is first introduced to the simple usage of "doPhysics"/"do_physics" with only a delta-time, and later introduced to the use of the sub-step parameters.

And on the Python side, the examples reflect this: the first example of the use of "doPhysics" employs only the delta-time, while the second demonstrates sub-stepping.

However, on the C++ side, the examples only showed the use "do_physics" with sub-steps.

While a close reading of the text might inform the reader that "do_physics" can be used without sub-stepping, and that sub-stepping can have performance impact, I fear that it would be quite easy for a reader to miss that and primarily see the examples.

Hence I'm proposing a change that brings the C++ examples in line with the Python examples, by changing the first example that demonstrates "do_physics" to use only the delta-time.

…proach

In the text of this page, the reader is first introduced to the simple usage of "doPhysics"/"do_physics" with only a delta-time, and later introduced to the use of the sub-step parameters.

And on the Python side, the examples reflect this: the first example of the use of "doPhysics" employs only the delta-time, while the second demonstrates sub-stepping.

However, on the C++ side, the examples _only_ showed the use "do_physics" with sub-steps.

While a close reading of the text might inform the reader that "do_physics" can be used without sub-stepping, and that sub-stepping can have performance impact, I fear that it would be quite easy for a reader to miss that and primarily see the examples.

Hence I'm proposing a change that brings the C++ examples in line with the Python examples, by changing the first example that demonstrates "do_physics" to use only the delta-time.
@rdb rdb merged commit ca55be4 into panda3d:1.10 Sep 22, 2025
@rdb
Copy link
Member

rdb commented Sep 22, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants