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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:06:42+00:00 2026-05-25T02:06:42+00:00

I am trying to make a simple skateboarding game using AndEngine and the Box2D

  • 0

I am trying to make a simple skateboarding game using AndEngine and the Box2D physics addon. I am trying to make a ‘grind’ rail and need to test if the bottom of my player is in collision with the top of the grind rail; I know the common way to do this is to resize the collision box to 1 pixel along each edge of the sprite and test for collision, but I have no idea how I can resize the collision box of any of my sprites bodies.

I would just use Andengines collision detection but box2Ds collision detection and general physics stop some things being detected as a collision with AndEngines collision detection, so I have been trying to make a new ‘ContactListener’ for my physics world and play around with the ‘beginContact(Contact contact)’ method, but differentiating between things that are colliding is a lot less straightforward and I’m not really sure what i’m doing…

Also, I would like the ability for my player to pass beside the rail (in front of it) but at the moment my player collides with its edges and stops.

At the moment box2D is seeming like more effort than its worth and I’m very tempted to rip it out of my code and just go with AndEngines collision detection instead and have a crack at my own simple physics…

  • 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-25T02:06:43+00:00Added an answer on May 25, 2026 at 2:06 am

    You can attach ‘Userdata’ (Type: Object) to the Body objects you create. I would make some kind of Userdata class and extend sth like SkateBoardUserdata and GrindRailUserdata.

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

Sidebar

Related Questions

im trying to make a simple game on cocos2d box2d, its basically got two
Trying to make simple minesweeper game in python, but have one problem. I have
I'm trying to make simple script using jquery $post function to pass data to
I'm trying to make simple many-to-one association, using NHibernate.. I have class Recruit with
I am trying to make a simple menu with a nice transition effect using
I am trying to make a simple drawing program in python using pygame. I
I'm trying to make simple library blake hash function wrapper using python ctypes from
Iam trying to make a simple ordering using objectify and GAE. Unfortunatly it does't
I'm trying to make a simple browser game without relying on anything fancy like
Background: Trying to make a simple drop the ball game. The code is located

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.