Merge branch 'change-lookingatdirection-name' of https://github.com/Duroxxigar/FlaxEngine into Duroxxigar-change-lookingatdirection-name
This commit is contained in:
@@ -1730,6 +1730,11 @@ void Actor::LookAt(const Vector3& worldPos, const Vector3& worldUp)
|
||||
}
|
||||
|
||||
Quaternion Actor::LookingAt(const Vector3& worldPos) const
|
||||
{
|
||||
return GetLookAtDirection(worldPos);
|
||||
}
|
||||
|
||||
Quaternion Actor::GetLookAtDirection(const Vector3& worldPos) const
|
||||
{
|
||||
const Vector3 direction = worldPos - _transform.Translation;
|
||||
if (direction.LengthSquared() < ZeroTolerance)
|
||||
@@ -1757,6 +1762,11 @@ Quaternion Actor::LookingAt(const Vector3& worldPos) const
|
||||
}
|
||||
|
||||
Quaternion Actor::LookingAt(const Vector3& worldPos, const Vector3& worldUp) const
|
||||
{
|
||||
return GetLookAtDirection(worldPos, worldUp);
|
||||
}
|
||||
|
||||
Quaternion Actor::GetLookAtDirection(const Vector3& worldPos, const Vector3& worldUp) const
|
||||
{
|
||||
const Vector3 direction = worldPos - _transform.Translation;
|
||||
if (direction.LengthSquared() < ZeroTolerance)
|
||||
|
||||
Reference in New Issue
Block a user