mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 16:36:54 +02:00
do avatar simulation before physics simulation so that physics actions can update based on avatar
This commit is contained in:
parent
6265563084
commit
ed9907ce66
1 changed files with 2 additions and 2 deletions
|
@ -2761,6 +2761,8 @@ void Application::update(float deltaTime) {
|
||||||
updateThreads(deltaTime); // If running non-threaded, then give the threads some time to process...
|
updateThreads(deltaTime); // If running non-threaded, then give the threads some time to process...
|
||||||
updateDialogs(deltaTime); // update various stats dialogs if present
|
updateDialogs(deltaTime); // update various stats dialogs if present
|
||||||
|
|
||||||
|
_avatarUpdate->synchronousProcess();
|
||||||
|
|
||||||
{
|
{
|
||||||
PerformanceTimer perfTimer("physics");
|
PerformanceTimer perfTimer("physics");
|
||||||
myAvatar->relayDriveKeysToCharacterController();
|
myAvatar->relayDriveKeysToCharacterController();
|
||||||
|
@ -2822,8 +2824,6 @@ void Application::update(float deltaTime) {
|
||||||
_overlays.update(deltaTime);
|
_overlays.update(deltaTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
_avatarUpdate->synchronousProcess();
|
|
||||||
|
|
||||||
// Update _viewFrustum with latest camera and view frustum data...
|
// Update _viewFrustum with latest camera and view frustum data...
|
||||||
// NOTE: we get this from the view frustum, to make it simpler, since the
|
// NOTE: we get this from the view frustum, to make it simpler, since the
|
||||||
// loadViewFrumstum() method will get the correct details from the camera
|
// loadViewFrumstum() method will get the correct details from the camera
|
||||||
|
|
Loading…
Reference in a new issue