transform_point now more explicitly rotates input position
This commit is contained in:
parent
9783774a7b
commit
49191e85ba
|
@ -43,7 +43,7 @@ Vector transform_direction(Transform* self, Vector direction) {
|
||||||
|
|
||||||
static inline
|
static inline
|
||||||
Vector transform_point(Transform* self, Vector position) {
|
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
|
static
|
||||||
|
|
Loading…
Reference in a new issue