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

  • Home
  • SEARCH
  • 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 8459717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:24:24+00:00 2026-06-10T13:24:24+00:00

I have a some issue regarding multiple detection of static bodies. How can i

  • 0

I have a some issue regarding multiple detection of static bodies.

How can i detect or differentiate multiple static bodies?
In my game i am using tile map and create 3 objects in static body. How can i differentiate each other when collied with player sprite?

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-06-10T13:24:26+00:00Added an answer on June 10, 2026 at 1:24 pm

    You can do it in 2ways.

    id obj1  = (id)bodyA->GetUserData();
    
    if( ((CCSprite*)obj1).tag == kTagStaticBody1 ) //check ur sprite tag
    {
    
    }
    

    //OR: For identification of class

    id obj1  = (id)bodyA->GetUserData();
    
    if([obj1 isKindOfClass:[MyActor class]])
    {
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some query regarding browser close issue. I am using xcart.When user have
I have an issue with System.Threading.Timer. I am scheduling some actions using a time
I have an other active question HERE regarding some hopeless memory issues that possibly
I have some urgent issue which I could not find answer for across the
I have a weird issue. I have some icons that are being built based
I have an issue with some HTML displayed in Drupal, but I am not
I know that there are some threads have a similar issue with this thread.
Good morning. I've been having this issue for some days and have been lokking
I have an issue while storing some special character values into db. For e.g.
i have an issue i could use some help with, i have python list

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.