Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7510429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:13:20+00:00 2026-05-29T23:13:20+00:00

So I have a circle moving towards a rectangle on screen in my Android

  • 0

So I have a circle moving towards a rectangle on screen in my Android game. Each has a bounding box with left, top, right, bottom values that match their screen coordinates. I determine if there was a collision using the RectF.intersects(RectF one, RectF two) method. Now my problem is to determine which side the collision occurs on. I have done some searching around and every answer just confuses me. Does anyone have any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T23:13:21+00:00Added an answer on May 29, 2026 at 11:13 pm

    wait, you are drawing a circle and a rect, and you checking intersections on two rects?

    Why not draw a circle and a rect on the canvas, and measure the distance between each edge of the rect and the center of the circle. If any of those 4 distances < radius of circle, you’ll know which edge was hit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an object right now which I have moving in a circle around
In the context of a game program, I have a moving circle and a
At my game screen console one triangle and one circle is moving randomly. I
I have an abstract base class called Shape from which both Circle and Rectangle
I have problem with circle-rectangle intersection.Though A number of discussion i found about it
In my WinForms app (C#) I have a circle (defined by a Rectangle )
I have one triangle ad one circle moving objects on plane.How will i know
I have an Egg (dynamic circle body) and some moving Wall s (static body,
I have a system that requires moving an image on the screen. I am
I have circles (there can be more than two) that are moving towards a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.