Skip to content
Snippets Groups Projects
Commit f06ae152 authored by Ricardo Ortiz's avatar Ricardo Ortiz
Browse files

Fix bug in trasformation applied to mesh.

Relocate utility scripts.
parent 177e2640
No related branches found
No related tags found
No related merge requests found
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
......@@ -194,8 +194,8 @@ bool ToolCoupler::updateTracker()
core::Quaterniond rot = inputDevice->getOrientation();
core::Vec3d pos = inputDevice->getPosition() * this->scalingFactor;
Eigen::Translation3d translation(pos - this->position);
Eigen::Quaterniond rotation(rot * this->orientation);
Eigen::Translation3d translation(pos - rotation*this->position);
this->mesh->transform(/*this->initialTransform**/translation*rotation);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment