This commit is contained in:
PC-20230316NUNE\Administrator
2024-02-02 15:38:13 +08:00
parent 877dca3b43
commit 00f56e11c7
228 changed files with 36944 additions and 20084 deletions

View File

@@ -38,7 +38,7 @@ namespace Pathfinding.Examples {
// Rotate character to face the correct direction
while (true) {
var origRotation = ai.rotation;
var finalRotation = ai.SimulateRotationTowards(rs.first.forward, ai.rotationSpeed * Time.deltaTime);
var finalRotation = ai.SimulateRotationTowards(rs.first.forward, ai.rotationSpeed * GetSync().Time.deltaTime);
// Rotate until the rotation does not change anymore
if (origRotation == finalRotation) break;
ai.FinalizeMovement(ai.position, finalRotation);