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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:47:31+00:00 2026-06-10T04:47:31+00:00

I use Box2D shape vertices in my app and I have implemented it like

  • 0

I use Box2D shape vertices in my app and I have implemented it like so:

b2Vec2 verts[] = {
            b2Vec2(-25.6f / PTM_RATIO) *scale, (50.7f / PTM_RATIO) *scale),
            b2Vec2(-20.6f / PTM_RATIO) *scale, (-48.0f / PTM_RATIO) *scale),
            b2Vec2(27.3f / PTM_RATIO) *scale, (-48.0f / PTM_RATIO) *scale),
            b2Vec2(21.5f / PTM_RATIO) *scale, (51.5f / PTM_RATIO) *scale),
            b2Vec2(-26.8f / PTM_RATIO) *scale, (49.8f / PTM_RATIO) *scale) };
        spriteShape.Set(verts, num);

Now obviously my verts are scaled to ‘scale’, the scale of my CCSprite. Now do I have to also scale the b2Body or something also? Currently, I am not and I think that is the reason why when I use debug draw, my sizes are skewed. I don’t need any complicated answer, its just a Yes or No question. 🙂

Also as a quick side question, if I have a PLIST containing the values for the vertices for one of my images, do I need a PLIST just for the iPhone or the iPhone and iPad or, all 4 possibilities, retina and non-retina both devices?

Can anyone clarify this?

  • 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-10T04:47:32+00:00Added an answer on June 10, 2026 at 4:47 am

    Yes. If you scale your sprite (for example via scale property) you will have to scale the Box2D shape as well.

    Since Retina devices use the same screen size in points (ie 480×320 points on Retina iPhone) you only need one shape for Retina and non-Retina devices. In fact, unless you scale your iPad game’s assets, you can use the same shapes on iPad and iPad Retina too.

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

Sidebar

Related Questions

There is a box2d class b2loopShape that I want to use in my app
I am currently running Kobold 1.0.4 and cannot work out how to use Box2D
I am trying to use the Box2D contact listener in my game. I know
So I have been trying to recreate Pong in Box2D to learn how to
ok, im following the RW tutorial on box2d, i have got to the part
As CLRProfiler use words like HEAP statistic, OBJECTS finalized, it made me think it
I want to build a platform game with cocos2d/Box2D. I use CCFollow to follow
My app crashes when I try to use the features of b2Body from within
i am using box2d to developed iphone game.But i have not a lot of
I've encountered a weird problem about positioning bodies in cocos2d/box2d. If I set b2BodyDef

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.