Erotate
This commit is contained in:
parent
43b180a44f
commit
b9e3b4c29b
|
@ -279,7 +279,7 @@ NoriObject *loadFromXML(const std::string &filename) {
|
|||
case ERotate: {
|
||||
check_attributes(node, { "angle", "axis" });
|
||||
float angle = degToRad(toFloat(node.attribute("angle").value()));
|
||||
Eigen::Vector3f axis = toVector3f(node.attribute("axis").value());
|
||||
Eigen::Vector3f axis = toVector3f(node.attribute("axis").value()).normalized();
|
||||
transform = Eigen::AngleAxis<float>(angle, axis) * transform;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue