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.

Taidot: C++ -ohjelmointi, Pelinkehitys

Näytä lisää: 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

Tietoa työnantajasta:
( 0 arvostelua ) San Jose, United States

Projektin tunnus: #18877359

2 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


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 3 päivässä
(8 arvostelua)

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 3 päivässä
(1 arvostelu)