mirror of
https://github.com/HandmadeMath/HandmadeMath.git
synced 2026-01-04 02:32:27 +00:00
Fixed Translate function again
This commit is contained in:
@@ -789,11 +789,8 @@ HMM_Translate(hmm_vec3 Translation)
|
||||
{
|
||||
hmm_mat4 Result = HMM_Mat4d(1.0f);
|
||||
|
||||
Result.Elements[0][0] = 1.0f;
|
||||
Result.Elements[0][3] = Translation.X;
|
||||
Result.Elements[1][1] = 1.0f;
|
||||
Result.Elements[1][3] = Translation.Y;
|
||||
Result.Elements[2][2] = 1.0f;
|
||||
Result.Elements[2][3] = Translation.Z;
|
||||
Result.Elements[3][3] = 1.0f;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user