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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:43:02+00:00 2026-06-06T01:43:02+00:00

Salut, I’m currently working on a pool game in flash, using box2d for physics

  • 0

Salut, I’m currently working on a pool game in flash, using box2d for physics simulations and i’m stuck with collision filtering.

What i try to do is to change the colision mask bit of a ball when it enter a pocket, so that it won’t collide the other balls (I don’t want to delete the physic object because I need to do some effect before).

The collision mask bit seems changed well, but it doesn’t take effect immediatly ans the pocketed ball still colide some time before getting fully uncolisionable.

I don’t know why, is it really possible to change the mask bit at run time?

thank you.

  • 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-06-06T01:43:03+00:00Added an answer on June 6, 2026 at 1:43 am

    When two fixtures become near each other (specifically, when their AABBs begin to overlap) a b2Contact is created to managed the interaction between them. The relevant data for the collision (friction, restitution etc) is copied into this b2Contact and it persists until the AABBs have stopped overlapping. This is done for efficiency but a side effect is that as long as the two AABBs remain overlapping the collision mask bits are not checked anymore.

    One way you could work around this is to manually cancel the default collision response by calling contact->SetEnabled(false) in the PreSolve callback for any collisions with the pocketed ball. This would need to be done every time you got a PreSolve call.

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

Sidebar

Related Questions

Salut, community! Briefly. I wrote usual model over QAbstractTableModel and using it in usual
Hy everybody, I try to sign one message with RSA algorithm, i'm working to
I've created a salt using; md5(rand(0,10000000)); (there is probably a better way?) There doesn't
I am preparing a registration page using JSF/Spring webflow&mvc application. I have added two
I'm using the following hash with a salt that says 'unique' . I'm not
I currently use SHA512 with per user random salt to hash user passwords and
All, I am using the following PHP function to salt & hash user passwords
Using password password, salt 1234567812345678 100 repetitions, 128-bit result http://bitwiseshiftleft.github.com/sjcl/demo/ is a javascript implementation,
I am using PBKDF2 encryption to hash password with salt. should I store hashed
Assuming we have a salt that's in the database and that has been generated

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.