Fixed raycast sphere.

This commit is contained in:
YourWishes committed 2023-03-18 22:58:26 -07:00
1 parent d97d19f93c
commit 765c9015ae
9 files changed
+249 -189

No files matched your search

+1 -1
View File
@@ -131,7 +131,7 @@ void Transform::setLocalTransform(glm::mat4 transform) {
}
glm::vec3 Transform::getWorldPosition() {
return glm::inverse(this->transformWorld)[3];
return this->transformWorld[3];
}
glm::mat4 Transform::getWorldTransform() {