Fixed raycast sphere.
This commit is contained in:
1 parent
d97d19f93c
commit
765c9015ae
9 files changed
+249
-189
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user