Fixed collision listener bug & incorrect transform forward. Added collision tags to raycasts. #274

Merged
direnbharwani merged 5 commits from SP3-2-Physics into main 2022-11-24 15:15:33 +08:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 438a597a25 - Show all commits

View File

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