renamed self to data for impls

This commit is contained in:
Sara 2023-10-07 18:42:28 +02:00
parent c136bc1494
commit 6f49f846cc

View file

@ -30,7 +30,7 @@ void rigidbody_destroy(RigidBody* self) {
void rigidbody_apply_physics(RigidBody* self) {
Vector velocity = vmulff(self->linear_velocity, delta_time());
Vector* position = (self->transformable.tc->get_position(self->transformable.self));
Vector* position = (self->transformable.tc->get_position(self->transformable.data));
*position = vaddf(*position, velocity);
}