transform_point now more explicitly rotates input position

This commit is contained in:
Sara 2023-10-08 23:08:38 +02:00
parent 9783774a7b
commit 49191e85ba

View file

@ -43,7 +43,7 @@ Vector transform_direction(Transform* self, Vector direction) {
static inline
Vector transform_point(Transform* self, Vector position) {
return vaddf(vmulf(transform_direction(self, position), self->scale), self->position);
return vaddf(vmulf(vrotatef(position, self->rotation), self->scale), self->position);
}
static