diff options
| author | raysan5 <[email protected]> | 2017-07-21 17:46:44 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2017-07-21 17:46:44 +0200 |
| commit | c6cd07c373541f3b112e99f924b2213196625dc7 (patch) | |
| tree | 2c2f4bf5ef3856b3451f2b4891000f430666178f /src/models.c | |
| parent | e52032f64660008fdcf0c8d707ef6aed1e6fc32f (diff) | |
| download | raylib-c6cd07c373541f3b112e99f924b2213196625dc7.tar.gz raylib-c6cd07c373541f3b112e99f924b2213196625dc7.zip | |
Some tweaks raymath related
Diffstat (limited to 'src/models.c')
| -rw-r--r-- | src/models.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models.c b/src/models.c index cfcefc2f..7df9a10b 100644 --- a/src/models.c +++ b/src/models.c @@ -1297,8 +1297,8 @@ void DrawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rota { // Calculate transformation matrix from function parameters // Get transform matrix (rotation -> scale -> translation) - Matrix matRotation = MatrixRotate(rotationAxis, rotationAngle*DEG2RAD); Matrix matScale = MatrixScale(scale.x, scale.y, scale.z); + Matrix matRotation = MatrixRotate(rotationAxis, rotationAngle*DEG2RAD); Matrix matTranslation = MatrixTranslate(position.x, position.y, position.z); Matrix matTransform = MatrixMultiply(MatrixMultiply(matScale, matRotation), matTranslation); |
