mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
fix(model): correctly set identity in CM2Model::SetWorldTransform
This commit is contained in:
parent
a508885c78
commit
e8d94cbea3
@ -1989,8 +1989,7 @@ void CM2Model::SetVisible(int32_t visible) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CM2Model::SetWorldTransform(const C3Vector& position, float orientation, float scale) {
|
void CM2Model::SetWorldTransform(const C3Vector& position, float orientation, float scale) {
|
||||||
C44Matrix(this->matrixB4);
|
this->matrixB4.Identity();
|
||||||
|
|
||||||
this->matrixB4.RotateAroundZ(orientation);
|
this->matrixB4.RotateAroundZ(orientation);
|
||||||
this->matrixB4.Scale(scale);
|
this->matrixB4.Scale(scale);
|
||||||
this->matrixB4.d0 = position.x;
|
this->matrixB4.d0 = position.x;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user