diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-05 13:40:56 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-05 13:40:56 +0200 |
commit | ee261c996b6864ad65f086d97cdb47469c10a651 (patch) | |
tree | f594437503cd2ef4116e9b8c8b6560b970c77541 /src/core/Placeable.cpp | |
parent | CAutoPilot + CCarAI + fixes (diff) | |
parent | SetPosition, final part (diff) | |
download | re3-ee261c996b6864ad65f086d97cdb47469c10a651.tar re3-ee261c996b6864ad65f086d97cdb47469c10a651.tar.gz re3-ee261c996b6864ad65f086d97cdb47469c10a651.tar.bz2 re3-ee261c996b6864ad65f086d97cdb47469c10a651.tar.lz re3-ee261c996b6864ad65f086d97cdb47469c10a651.tar.xz re3-ee261c996b6864ad65f086d97cdb47469c10a651.tar.zst re3-ee261c996b6864ad65f086d97cdb47469c10a651.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/Placeable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/Placeable.cpp b/src/core/Placeable.cpp index 99ca5659..69b3d3ea 100644 --- a/src/core/Placeable.cpp +++ b/src/core/Placeable.cpp @@ -12,9 +12,9 @@ CPlaceable::~CPlaceable(void) = default; void CPlaceable::SetHeading(float angle) { - CVector pos = GetPosition(); + CVector pos = GetMatrix().GetPosition(); m_matrix.SetRotateZ(angle); - GetPosition() += pos; + GetMatrix().Translate(pos); } bool |