mirror of
https://github.com/PoetryInCode/simple-rigid-sim.git
synced 2025-04-19 18:17:14 -04:00
set position
This commit is contained in:
parent
8d4b95c3fc
commit
4fecd0c149
@ -84,4 +84,8 @@ void phys_obj::calculate_vectors(std::vector<phys_obj> objects) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void phys_obj::setPosition(Vector vec) {
|
||||
obj.center = vec;
|
||||
}
|
@ -19,4 +19,5 @@ class phys_obj {
|
||||
void translate(Vector vec);
|
||||
bool checkCollision(phys_obj o);
|
||||
int distanceTo(Circle c);
|
||||
void setPosition(Vector vec);
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user