fix(model): correctly set identity in CM2Model::SetWorldTransform

This commit is contained in:
fallenoak 2025-11-04 15:38:57 -06:00
parent a508885c78
commit e8d94cbea3
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -1989,8 +1989,7 @@ void CM2Model::SetVisible(int32_t visible) {
}
void CM2Model::SetWorldTransform(const C3Vector& position, float orientation, float scale) {
C44Matrix(this->matrixB4);
this->matrixB4.Identity();
this->matrixB4.RotateAroundZ(orientation);
this->matrixB4.Scale(scale);
this->matrixB4.d0 = position.x;