Added rotate method with quaternions for Vector3 #301

Merged
direnbharwani merged 3 commits from SP3-16-Math into main 2023-01-07 16:18:36 +08:00
1 changed files with 1 additions and 2 deletions
Showing only changes of commit 222bda9a13 - Show all commits

View File

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