From 595afe42e5a0764672d5473396a48790a0be2201 Mon Sep 17 00:00:00 2001 From: Aaron Kimbre Date: Sun, 2 Apr 2023 22:37:24 -0500 Subject: [PATCH] fix the lookat --- dGame/dBehaviors/ChangeOrientationBehavior.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dGame/dBehaviors/ChangeOrientationBehavior.cpp b/dGame/dBehaviors/ChangeOrientationBehavior.cpp index a60be62f..d07e7429 100644 --- a/dGame/dBehaviors/ChangeOrientationBehavior.cpp +++ b/dGame/dBehaviors/ChangeOrientationBehavior.cpp @@ -16,7 +16,7 @@ void ChangeOrientationBehavior::Calculate(BehaviorContext* context, RakNet::BitS if (self == nullptr || other == nullptr) return; const auto source = self->GetPosition(); - const auto destination = self->GetPosition(); + const auto destination = other->GetPosition(); if (m_OrientCaster) { auto* baseCombatAIComponent = self->GetComponent();