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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:58:49+00:00 2026-06-12T18:58:49+00:00

I was recently assigned to create a siple game using the Corona SDK. The

  • 0

I was recently assigned to create a siple game using the Corona SDK. The main pillar of the game would be a simple event: the user should put a ball in a basket, and I should be able to handle this event.

Here is a picture for better understanding:

enter image description here

I successfully managed to create the collision shape for the basket, but i have trouble with the collision of the inside of this basket. My first thought was the following:

  • create a new shape
  • size and position it to fit the “belly” of this basket
  • add it to the physics-world, and listen to the collision.

With hybrid drawing it looks like this:

enter image description here

But there is a problem: if i add this shape to the physics, it wouldn’t let the ball fall into the, basket, it will handle this shape as a solid object as well.

So my question is: How could I get this custom object to collide, without blocking the
ball to fall through it? I have read a lots of forum post with similar questions but none of them got a proper answer. There must be a way to do this in an elegant way.

And one note: Please don’t suggest checking the collision manually, with rectangle intersection, because in this simple case it would work, but later I may need to change the shape of the basket, and then it will be useless!

  • 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-12T18:58:50+00:00Added an answer on June 12, 2026 at 6:58 pm

    Box2D has a thing called “sensor”.

    You just set the internal collision one to be a sensor, and it will do exactly what you want 🙂

    Just do:

    MyInternalCollisionObject.isSensor = true
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently, I deleted a user account in MySQL assigned to my former boss. Then,
I have been recently assigned a task in which I need to create a
In a project at work, I've recently been assigned to encode the user input
Recently I've been assigned to examine Java code coverage using Sonar with Maven. I
I recently started a new project using Automatic Reference Counting (ARC). When I assigned
I have recently been assigned a CSS & design project that's in a CakePHP
Recently I just got assigned a project to develop a web application/site that uses
Recently I was able to create a tablet software for my Cerebral Palsy girl
I'm recently assigned a task to make ant be able to build war packages
I normally use DataSet because It is very flexible. Recently I am assigned code

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.