change: SetNewRotation now takes in Vector3s instead

This commit is contained in:
Chris
2025-10-03 19:40:49 -04:00
parent 61d23cb5e2
commit 182b3b001b
2 changed files with 7 additions and 7 deletions

View File

@@ -29,9 +29,9 @@ namespace Reset.Units {
//EndAction can be called from anywhere.
protected override void OnExecute() {
if (relativeToIsDirection.value) {
agent.SetNewRotation(Quaternion.Euler(newRotation.value), relativity.value, absolute.value, Quaternion.Euler(relativeTo.value));
agent.SetNewRotation(newRotation.value, relativity.value, absolute.value, relativeTo.value);
} else {
agent.SetNewRotation(Quaternion.Euler(newRotation.value), relativity.value, absolute.value, Quaternion.LookRotation(relativeTo.value));
agent.SetNewRotation(newRotation.value, relativity.value, absolute.value, relativeTo.value);
}
EndAction(true);
}