refactor: update Puppet transform logic to support AffineTransform world matrices and improve selection highlighting
This commit is contained in:
@@ -85,7 +85,7 @@ void Solid::SetMaterial(G4Material *material) {
|
||||
}
|
||||
|
||||
void Solid::SetTransform(Matrix4f transform) {
|
||||
uLib::AffineTransform t;
|
||||
uLib::AffineTransform t;
|
||||
t.SetMatrix(transform);
|
||||
|
||||
// 2. Extract position and rotation for Geant4
|
||||
@@ -199,7 +199,7 @@ void BoxSolid::Update() {
|
||||
// We must rotate the offset vector because uLib box can be rotated.
|
||||
Vector3f center = pos + rot * (size * 0.5);
|
||||
|
||||
uLib::AffineTransform t;
|
||||
uLib::AffineTransform t;
|
||||
t.SetPosition(center);
|
||||
t.SetRotation(rot);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user