add detector simulation
This commit is contained in:
@@ -65,7 +65,9 @@ public:
|
||||
HLine3f worldPlane;
|
||||
Matrix4f M = this->GetWorldMatrix();
|
||||
worldPlane.origin = M * m_ProjectionPlane.origin;
|
||||
worldPlane.direction = M * m_ProjectionPlane.direction;
|
||||
HVector3f dirNorm = M * m_ProjectionPlane.direction;
|
||||
dirNorm.normalize(); // Normalize for consistent dot products
|
||||
worldPlane.direction = dirNorm;
|
||||
return worldPlane;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user