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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T18:25:02+00:00 2026-05-29T18:25:02+00:00

Im trying out JBox2d. I´ve been through a couple of tutorials, and got it

  • 0

Im trying out JBox2d.
I´ve been through a couple of tutorials, and got it up and running. Created four walls and a ball that should bounch.
At the start the ball would bounce too little, just making 2-3 bounces then stopping suddenly. I managed to figure out this was due to:

/**
 * A velocity threshold for elastic collisions. Any collision with a
 * relative linear velocity below this threshold will be treated as
 * inelastic.
 */
public static float velocityThreshold = 1.0f;

in the Settings. I tried fiddle with the value, and setting it to 0 seems to make it look real (I’m having it at 0.1 now since I guess 0 would be bad..). However, it bounces correctly a few times, getting lower and lower velocity, but then it reaches a point where it will simply continue bouncing forever.
I have tried changing the mass, density, friction and restitution of the ball and world but nothing seems to help (If I set the ball restitution to < 0.2 it will stop, or at least look as if has stopped, I’m not sure what JBox2D thinks, I think its still working on sorting out the bouncing).
Does anyone know how to fix this so that the ball will stop bouncing in the end?

  • 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-29T18:25:13+00:00Added an answer on May 29, 2026 at 6:25 pm

    You’re messing with the wrong value. Take a look at your fixture definition, there’s a value for restitution there. Check out the restitution test in the testbed for an example.

    That value is for comparison in general for all the physics objects.

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

Sidebar

Related Questions

I'm trying out http://emacspeak.sourceforge.net now that I have it running on windows. I'd like
So ive been trying out a couple jQuery plugins to help assist me in
Just trying out a couple of Android samples. Struggling to find the method managedQuery
been trying out this for quite some time but I'm still unable to built
I'm trying out java and I seem to be running into some problems. The
I am trying out moq and I'm running into a problem with the following
After trying out various combinations for the glBlendFunc, I've noticed that most of them
I have been trying out EF 4.1 ( code first ) with MVC 3.
Just trying out ubuntu server on my pc and have been testing some commands
I'm trying out lisp and working through the book Practical Common Lisp at http://www.gigamonkeys.com/book/

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.