| 538 | } |
| 539 | |
| 540 | Vec2F Monster::getAbsolutePosition(Vec2F relativePosition) const { |
| 541 | if (m_movementController->facingDirection() == Direction::Left) |
| 542 | relativePosition[0] *= -1; |
| 543 | if (m_movementController->rotation() != 0) |
| 544 | relativePosition = relativePosition.rotate(m_movementController->rotation()); |
| 545 | return m_movementController->position() + relativePosition; |
| 546 | } |
| 547 | |
| 548 | void Monster::updateStatus(float dt) { |
| 549 | m_effectEmitter.setSourcePosition("normal", position()); |
nothing calls this directly
no test coverage detected