I'm trying to just get a circle that always bounces off of a surface and yet i seem to be hitting a problem where at slow speeds with angles starting to be parallel to the surface's face the circle gets absorbed onto the surface and then rolls along it.
I have no gravity on and have the following constants set
circle:
linear_damping = 0.7
angular_damping = 0.4
friction = 0.2
restitution = 0.99
static box surface:
friction = 0.4
restitution = 0.99
I've been playing with these constants blindly so they're not really suitable anymore, frustratingly going from one extreme to the other with each of them seems to have no effect on this particular problem of the circle being "absorbed" into the surface and rolling along it.
Any pointers as to whether this is a side effect of something in Box, or what kind of values i should be looking at to fix the problem would be very much appreciated.
I've set the circle and surface's restitution to being the same when really i want the circles restitution a lot lower, but because of the way box works with restitution this is the only way you can get such a bouncy setting to be used for the circle to surface collision. Surely at 0.99 I should expect the perpendicular to surface component of the circle's velocity to be nearly perfectly reflected away from the surface! The linear damping is to stop making the circle feeling like its moving on ice when not hitting anything, but i wonder if that could be playing a part in the collision response not managing to push the circle away?
I'll have to double check the resultant mass of the circles as well, i'd hope they'd be in acceptable ranges for Box.. if they were too small could that be causing what i'm seeing?
Anyways, your help as ever is appreciated.
Cheers
Jim
I have no gravity on and have the following constants set
circle:
linear_damping = 0.7
angular_damping = 0.4
friction = 0.2
restitution = 0.99
static box surface:
friction = 0.4
restitution = 0.99
I've been playing with these constants blindly so they're not really suitable anymore, frustratingly going from one extreme to the other with each of them seems to have no effect on this particular problem of the circle being "absorbed" into the surface and rolling along it.
Any pointers as to whether this is a side effect of something in Box, or what kind of values i should be looking at to fix the problem would be very much appreciated.
I've set the circle and surface's restitution to being the same when really i want the circles restitution a lot lower, but because of the way box works with restitution this is the only way you can get such a bouncy setting to be used for the circle to surface collision. Surely at 0.99 I should expect the perpendicular to surface component of the circle's velocity to be nearly perfectly reflected away from the surface! The linear damping is to stop making the circle feeling like its moving on ice when not hitting anything, but i wonder if that could be playing a part in the collision response not managing to push the circle away?
I'll have to double check the resultant mass of the circles as well, i'd hope they'd be in acceptable ranges for Box.. if they were too small could that be causing what i'm seeing?
Anyways, your help as ever is appreciated.
Cheers
Jim