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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:54:07+00:00 2026-05-16T22:54:07+00:00

newbie to iPhone game development and Box2D here. I’m developing a game in which

  • 0

newbie to iPhone game development and Box2D here.

I’m developing a game in which I can move (drag) otherwise stationary objects that can collide with other objects.

How do I make these objects stationary in a Box2D world with gravity while maintaining their ability to collide with dynamic bodies?

One random thought is to exert a force equal to gravity on these objects all the time. Any better or simpler approaches? Will static bodies help?

  • 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-16T22:54:07+00:00Added an answer on May 16, 2026 at 10:54 pm

    Static bodies will collide with dynamic objects but not other static objects. That sounds like what you want, but it’s not clear from your description what the “other bodies” in question are.

    You cannot disable gravity on a per-object basis; exerting a force equal to the opposite of gravity will usually work but can, due to rounding errors, accumulate small velocities. A better approach is to set gravity to 0 and manually apply a gravitational force on the objects you do want affected by gravity.

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

Sidebar

Related Questions

Cocoa newbie here. I am working on an iPhone UITableViewController-based widget that can be
I am a newbie in iphone development and obj-c. Can you help me to
I am a newbie in iPhone application development. I am developing an iPad application.
I am a newbie to iPhone app development. I want to make a simple
I'm a newbie to iphone development and I've been struggling with an EXC_BAD_ACCESS error
Hi i'm a newbie to iphone application development.. present i'm working on Picasa web
I am a newbie in iPhone Development.I developed an iPhone Application and installed this
Just a newbie with iPhone development.. I just have a small problem but huge
I am newbie to iPhone development. Is there any API or method to run
i'm a newbie to iphone development. I'm doing a navigation-based app, and I'm having

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.