renamed self to data for impls
This commit is contained in:
parent
c136bc1494
commit
6f49f846cc
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue