mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-19 04:26:36 +02:00
Fix default findRayIntersection surfaceNormal to be in world space
This commit is contained in:
parent
b0c7e91737
commit
da6afb605b
1 changed files with 1 additions and 1 deletions
|
@ -638,7 +638,7 @@ bool EntityTreeElement::findDetailedRayIntersection(const glm::vec3& origin, con
|
|||
if (localDistance < distance && entity->getType() != EntityTypes::ParticleEffect) {
|
||||
distance = localDistance;
|
||||
face = localFace;
|
||||
surfaceNormal = localSurfaceNormal;
|
||||
surfaceNormal = glm::vec3(rotation * glm::vec4(localSurfaceNormal, 1.0f));
|
||||
*intersectedObject = (void*)entity.get();
|
||||
somethingIntersected = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue