Fixed raycast sphere.

This commit is contained in:
2023-03-18 22:58:26 -07:00
parent 669b02ca06
commit f8ab4e2abc
9 changed files with 249 additions and 189 deletions

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() {