void GreenShot1::beamCollision() { const Vec2 pos = m_gb->getMyVehiclePos(); const Vec2 v = m_gb->getMyVehicleV(); const auto& colRect = Rect(pos.asPoint() - Point(10, 0), Point( 20, m_beam.length() )).rotatedAt(pos, Circular6(m_beam.vector()).theta); if (m_stateTimer%3 == 0) DropManager::I()->m_rectDrops.push_back(RectDrop(colRect, ToColor(ShimiColors::Green))); AwakePlayerAttack(m_gb, colRect, m_color.value(), 3); }