Replaced Transform's Forward.get with new rotate method

This commit is contained in:
Diren D Bharwani 2023-01-07 16:16:35 +08:00
parent c3582cf5ee
commit 222bda9a13
1 changed files with 1 additions and 2 deletions

View File

@ -107,8 +107,7 @@ namespace SHADE
Vector3 Transform::Forward::get() Vector3 Transform::Forward::get()
{ {
const SHVec3 DIRECTION = SHVec3::Rotate(-SHVec3::UnitZ, Convert::ToNative(GlobalRotation)); return Vector3::Rotate(Vector3::Forward, GlobalRotation);
return Convert::ToCLI(DIRECTION);
} }
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/