| 389 | } |
| 390 | |
| 391 | void PhysicsBody::setPosition(float positionX, float positionY) |
| 392 | { |
| 393 | cpVect tt; |
| 394 | |
| 395 | tt.x = positionX + _positionOffset.x; |
| 396 | tt.y = positionY + _positionOffset.y; |
| 397 | |
| 398 | cpBodySetPosition(_cpBody, tt); |
| 399 | } |
| 400 | |
| 401 | Vec2 PhysicsBody::getPosition() const |
| 402 | { |
no test coverage detected