diff --git a/inc/hgl/math/Matrix.h b/inc/hgl/math/Matrix.h index e0b6b63..9d87d32 100644 --- a/inc/hgl/math/Matrix.h +++ b/inc/hgl/math/Matrix.h @@ -321,6 +321,14 @@ namespace hgl matrix_dirty=true; } + void ClearRotation() + { + rotation_quat=IdentityQuatf; + rotation_axis=Vector3f(0,0,0); + rotate_angle=0; + matrix_dirty=true; + } + void SetRotation(const Quatf &q) { rotation_quat=q; @@ -360,6 +368,12 @@ namespace hgl UpdateQuat(); } + void SetScale(const float &v) + { + scale_vector=Vector3f(v,v,v); + matrix_dirty=true; + } + void SetScale(const Vector3f &v) { scale_vector=v;