Lukket

Collision detection and resolution with iPhone X display

The goal is rather simple.

Given a 2D circle, its position this frame (p1), its position last frame (p2), and its radius resolve its collision with the edges of an iOS device screen.

The goal is that the position the circle was when it first collided with the screen edge on its way from p1 to p2 is calculated and its velocity is calculated based off of the normal.

The solution needs to be extremely fast as a few thousand entities need to calculate this collision every frame.

This needs to work for both rectangular phones and iPhone Xs. Now when it comes to the iPhone Xs you are free to approximate its geometry down to circles and edges BUT make it general if you do so. For example if you use a semicircle to approximate the rounded corners then the position and size of that semicircle needs to be editable in case of future phones.

In summary fill in the following function:

struct float2{

float x;

float y;

};

void collideWithEdge(float2& position, float2 last, float size, float2& velocity, ScreenType type) {

}

Your solution must be fast and efficient and written in a general way so that future curved displays can be covered to as well as larger iPhone X type screens. Additionally please make lots of helper methods and use those to build up their solution especially if you are doing specific kinds of collision detection.

Please contact me for more details thanks.

Evner: C++ Programmering, Spiludvikling

Se mere: flash racing game collision detection, iphone application display pdf, native iphone app display google map, iphone xs, iphone x resolution, iphone x screen resolution pixels, iphone x screen resolution, iphone xr, iphone x screen size pixels, iphone x screen pixels, iphone x price, collision detection car racing, create iphone app display videos, iphone application display company information, iphone development display photos, iphone app display art, iphone application display data, iphone app display website, iphone collision detection, iphone dev animated collision detection

Om arbejdsgiveren:
( 0 bedømmelser ) San Jose, United States

Projekt ID: #18877359

2 freelancere byder i gennemsnit $175 på dette job

LiaoFang

Dear client. Nice to meet you. I've read you project description carefully and very interested. Let's discuss over chat and get started. Waiting your reply. Warm regards.

$200 USD in 3 dage
(8 bedømmelser)
4.5
jk901

Dear As I am mobile and web expert, have rich experience with mobile app development If you are interested with my proposal, please let me know it. I hope to work with you on this project. Thanks.

$150 USD in 3 dage
(1 bedømmelse)
2.4