mirror of
https://gitee.com/jisol/jisol-game/
synced 2026-01-01 11:38:10 +00:00
提交
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user