Find Jobs
Hire Freelancers

Collision detection and resolution with iPhone X display

$30-250 USD

Zavřený
Zveřejněno přibližně před 5 roky

$30-250 USD

Zaplaceno při doručení
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.
IČ projektu: 18877359

O projektu

1 nabídka
Vzdálený projekt
Aktivní před 5 roky

Chcete si vydělat nějaké peníze?

Výhody podávání nabídek na Freelancer

Stanovte si rozpočet a časový rámec
Získejte za svou práci zaplaceno
Načrtněte svůj návrh
Registrace a podávání nabídek je zdarma
1 freelanceři nabízejí v průměru $150 USD za tuto práci
Avatar uživatele
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 v 3 dnech
5,0 (1 recenze)
2,4
2,4

O klientovi

Pochází z UNITED STATES
San Jose, United States
0,0
0
Členem od bře 6, 2019

Ověření klienta

Díky! Poslali jsme vám e-mailem odkaz pro získání kreditu zdarma.
Při odesílání e-mailu se něco pokazilo. Zkuste to prosím znovu.
Registrovaných uživatelů Zveřejněných projektů
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Načítání náhledu
Bylo uděleno povolení ke geolokaci.
Vaše doba přihlášení vypršela a byli jste odhlášeni. Přihlaste se znovu.