S
S
sa2rday2022-04-19 16:37:15
Unity
sa2rday, 2022-04-19 16:37:15

How to make Physics Raycaster 3d and 2d work together?

I need Physics Raycaster 3d for handling clicks on objects (implemented via OnPointerClick)
I need Physics Raycaster 2d for swiping across the screen (implemented via IBeginDragHandler, IDragHandler) (screenshot)
Both need to work
625ebb076ce4d689562698.png

Answer the question

In order to leave comments, you need to log in

7 answer(s)
F
Farawa, 2022-04-20
@Farawa

Just for swipes use input.mousebuttondown .up and .mouseposition

A
Alexander Aksentiev, 2016-10-10
@kolyafat

This is not a test task, but quite a full-fledged order for the development of a small thing.
A few hours of work, at least they should pay for this.
Treat it the way you want to.
A test task of 2-4 hours is acceptable (my speed is approximate).
Interview 1-2 hours (road, communication), at best.
In total, you need to spend about 6 hours on someone who is not clear, and work for free.
So-so in general IMHO.
PS
for this now you can generally leave immediately.
composer refers to "using" frameworks? Now this is part of the work - to look for ready-made solutions and implement them. Instead of writing bicycles for every sneeze.

D
Denis, 2016-10-10
@prototype_denis

Be a little smart - you're a programmer.

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>100% MVC application</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="https://yastatic.net/bootstrap/3.3.4/css/bootstrap.min.css">
        <style>
            main {
                margin-top: 16px;
            }
        </style>
    </head>
    <body>
        <main class="container">
            <section class="row">
                <header class="jumbotron">
                    <h1>100% MVC application</h1>
                </header>
                <article class="col-md-12">
                    <div id="disqus_thread">
                        <!-- <?php // Native php ?> -->
                    </div>
                </article>
            </section>
        </main>
        <script>
        (function() {
            var d = document, s = d.createElement("script");
            s.src = "https://EXAMPLE.disqus.com/embed.js";
            s.setAttribute("data-timestamp",+new Date());
            (d.head || d.body).appendChild(s);
        })();
        </script>
    </body>
</html>

Save as index.html and run in browser.
Elapsed time 3 minutes.

A
Alexey Skobkin, 2016-10-10
@skobkin

1 and 2. They want to see how you imagine the right application architecture and how you are able to implement it yourself. Here, as it were, it is veiled "what would a microframework look like if you wrote it." Based on the resulting code, they will be able to understand how you are with the design.
3. Yes. They are useful even purely for yourself if you are not a Senior Developer.

A
Andrey9000, 2017-08-11
@Andrey9000

Thank you very much for this question, you saved me. I just wanted to send a resume to this company (BeeJee). I decided to google about them and found this question. In my opinion, the task is inadequate. There is work for a few days, no less. It is not complex, it is voluminous. I have already gone through this in other offices, they gave me a whole online service as a test task to do, and not so simple, but very specific. After a week of hard work and a successfully completed assignment, I was denied employment under a far-fetched pretext (claims - comments in the code in Russian (despite the fact that I speak English very well, I just didn’t guess what language they need) and the use of global variables and functions in javascript, which is not prohibited) I was refused, having taken away my sources before that and probably applied them somewhere. I don't claim that BeeJee is doing the same mean thing, but rather than doing such voluminous tasks for a week of free work, it is better to spend this time looking for a more adequate employer. I will definitely not send my resume to BeeJee now.

Z
Zakharov Alexander, 2016-10-11
@AlexZaharow

Most likely, you can offer to discuss architecture, not writing. Personally, I don't see the point of writing anything at all without a prior conversation.

D
dimka1c, 2018-10-08
@dimka1c

Yes, I did the task of this office. Killed him all day. The task is not difficult, but really voluminous, there are enough nuances. Who says that here you can see work for a couple of hours or a super-duper programmer or just a distant person. To write it from scratch is at least a day. With regards to the adequacy of this task, a moot point. I understand that the demand is too high for a test one, but I also understand that they are weeding out unsuitable candidates.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question