[opt] when move() is called, character controller sync physics position to scene; change default stepOffset; set minimum skinWidth (#15966)

* [opt] [character controller] when move() is called, character controller sync physics position to scene immediately; change default stepOffset from 1.0 to 0.5; set minimum skinWidth 0.001

* tweak

* native

* eslint

* eslint

* eslint
This commit is contained in:
Ling Zhan
2023-08-17 17:34:04 +08:00
committed by GitHub
parent 52cb79d9eb
commit 1dc3142fbb
12 changed files with 117 additions and 58 deletions
@@ -68,6 +68,10 @@ void CLASS::move(float x, float y, float z, float minDist, float elapsedTime) {
_impl->move(x, y, z, minDist, elapsedTime); \
} \
\
void CLASS::syncPhysicsToScene() { \
_impl->syncPhysicsToScene(); \
} \
\
void CLASS::setStepOffset(float v) { \
_impl->setStepOffset(v); \
} \