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 6863547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:47:46+00:00 2026-05-27T02:47:46+00:00

I am making a simulation that involves particles dynamically added to the stage (lots

  • 0

I am making a simulation that involves particles dynamically added to the stage (lots of circles). When these circles collide (which are actually movieclips) they need to rebound (momentum switched). I have no problem with the physics but do not know how to efficiently check for collisions. It boils down to being able to 1) Check if a particle is colliding and 2) Getting which other particle (object) is involved in the collision?

I would ideally like particles to be able to check for their own collisions and adjust their own momentum, not just some meaty Render() function running on every frame. How could this be done?

Thanks in advance.

  • 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-27T02:47:46+00:00Added an answer on May 27, 2026 at 2:47 am

    For efficient collision detection, you will want to use something called a binary tree. Essentially, instead of checking every single pixel of every single circle against every single pixel of every single circle, you first check if it is even reasonable that two circles are touching. This is done by repeatedly dividing the map into quarters. If two circles aren’t even in the same quadrant of the screen, they won’t be touching.

    Implementation, however, is difficult, and unless you’re purposefully giving yourself a challenge, use a library so you don’t reinvent the wheel. You can use Box2D, a physics engine, or Flixel, a game engine.

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

Sidebar

Related Questions

Making an adobe flex ui in which data that is calculated must use proprietary
Making UML sequence diagram in VS 2010RC I've observed that there is no activation
Context: I'm making a simple solar system simulation in c++/OpenGL. Research: I've tried searching
I'm making a simple learning simulation, where there are multiple organisms on screen. They're
I have an application that loads lots of data into memory (this is because
I am making a simulation using python 2.6 + Simpy, about the subway system.
I am making a simulation of an ecosystem, it's very simple so don't worry
This may initially seem generic, but in fact, I am actually making the decision
i am making 3D Simulation of Solar System for every planet i have an
I have a C program that runs a scientific simulation and displays a visualisation

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.