Controlling Bounce Amount


I’m quite new to jme and I am doing some initial tests to see how things work and came across a problem regarding the physics.

I created a SphereCollisionShape and set it’s physics location to 10 units above my floor and observed it while it dropped, everything looks fine, but I want to make my sphere appear to have more bounce, sorta like a football instead of the way it looks now like some sort of metal ball.

I read in the documentation that setting the Restitution on the Rigid body control of my sphere should control that, but I have tried different values from 0 up to 1000, and it doesn’t look like it makes any difference.

Is there something else I need to change in order to acheive that?

Note: I’m using the jme3 beta sdk


shouldn’t it be between 0 and 1 ?

At least it is like that in real life physics :stuck_out_tongue:

shouldn’t it be between 0 and 1 ?

That was what I thought, but when it didn't work I started using larger numbers.

Do I have to change anything on my floor/plan in order for this to work? My sphere looks something like this (assuming radius, mat, and location are being passed to my function)

Sphere s = new Sphere(5, 5, radius);
Geometry g = new Geometry("sphere", s);
g.addControl(new RigidBodyControl(mass));

well I’m not sure about it :s sorry

Never used the physics thing in jme so I have no idea how it works

try reduce any values of things which absorb energy like friction of the floor etc

Thanks for the feedback, I think I got it to work. I had to set the restitution on the floor as well, and reduced the friction as well.

I need to do some tweaking around to make it more realistic is it look more like a rubbery bouncy ball now, but I think I get it now.