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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:29:10+00:00 2026-05-12T11:29:10+00:00

Hello stackoverflow community ! I am trying to figure out how to architect my

  • 0

Hello stackoverflow community !

I am trying to figure out how to architect my game using cocos2d.

My problem is that cocos2d’s physics engine (i’m talking about chipmunk) lies in a world behind sprites.

When I move the sprite, I’m wondering if I should

*1) be moving it by applying forces on the physics body behind it

OR

2) if i should just simulate movements through code then use physics only when a collision occurs.*


I know you may say that it’s up to me. But what was the intended behavior as cocos2d iphone was developed?

I thank you in advance <3

  • 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-12T11:29:11+00:00Added an answer on May 12, 2026 at 11:29 am

    To keep it within the chipmunk system you would apply forces/impulses. There are examples of folks taking control of moving the sprite with their own code, getting the body to follow the sprite then giving control of the body back to the chipmunk simulation.

    Quite a few people also just use chipmunk for collision detection and control sprite movement with their own code entirely. This can be done by adding the body to the chipmunk space but not adding the shape to the space.

    Here are some discussions on the subject.. I can’t post them as hyperlinks because I am a new user..

    “http://groups.google.com/group/cocos2d-iphone-discuss/browse_thread/thread/ae37e90eac059135/081da9bcefec76ba?#081da9bcefec76ba“

    “http://www.cocos2d-iphone.org/forum/topic/877“

    “http://jeanbombeur.com/content/2009-07-08-synchronizing-sprites-positions-and-rotations-between-chipmunk-and-cocos2d“

    Welcome and good luck!

    PS
    There is also a way to turn on a Chipmunk mode that gives you a little more freedom over what you can control but at the cost of a more realistic simulation.

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

Sidebar

Related Questions

Hello StackOverflow community, Using Google App Engine, I wrote a keyToSha256() method within a
Hello StackOverflow community, I have run into a problem that quite frankly is baffling
I want to say hello to the stackoverflow community. I've just started using knockout
Hello StackOverflow Users, I am new to android and trying to develop a game
Hello people of stackoverflow. I have a problem. I'm trying to set up my
Stackoverflow community. I found out that WSO2 community can be contacted on this site,
Hello Stackoverflow community, for a little game I need to display an octagon (
Hello again Stackoverflow community, Today I am trying to execute an application with commandline
Hello stackoverflow community, I have some code that works on virtually every browser except
Hello All you Lovely People on stackoverflow, I am trying to plot data using

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.