Fix gfx::bone_transform::matrix
This commit is contained in:
parent
727ec22fff
commit
b519391f83
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ namespace psemek::gfx
|
|||
template <typename T>
|
||||
geom::matrix<T, 3, 4> bone_transform<T>::matrix() const
|
||||
{
|
||||
return geom::affine_transform<T, 3, 3>(geom::quaternion_rotation<T>(geom::quaternion<T>(std::sqrt(scale) * rotation.coords)), translation).affine_matrix();
|
||||
return geom::affine_transform<T, 3, 3>(scale * geom::quaternion_rotation<T>(geom::quaternion<T>(rotation.coords)).linear_matrix(), translation).affine_matrix();
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue