Exemplo n.º 1
0
    public void SpawnPlayerDroppedItem(Item item, int quantity, MoleController playerController)
    {
        GamePosition spawnPosition = playerController.gamePos.add(DirectionUtil.getDirectionUnitVector(playerController.facing) * Player.DROP_DISTANCE);

        spawnPosition.descend(-0.5f);
        SpawnItem(item, quantity, spawnPosition);
    }