Hey,
I have an object that has a various restitutions and friction coefficients. I'd like to make it so that if it hits a certain wall, it loses a lot of kinetic energy and pretty much comes to a stop (although I don't want to kill it straight away, rather it just loses a lot of its momentum). I've tried playing around with various values for the wall, but the ball always seems to bounce off too far. What values should I increase/decrease for the wall so that it absorbs most of the energy and momentum? The wall itself is static. The 'workaround' way would be to simply handle the wall's collision event and manually set the ball's velocity, but is there a better way by setting the wall's properties? Thanks
I have an object that has a various restitutions and friction coefficients. I'd like to make it so that if it hits a certain wall, it loses a lot of kinetic energy and pretty much comes to a stop (although I don't want to kill it straight away, rather it just loses a lot of its momentum). I've tried playing around with various values for the wall, but the ball always seems to bounce off too far. What values should I increase/decrease for the wall so that it absorbs most of the energy and momentum? The wall itself is static. The 'workaround' way would be to simply handle the wall's collision event and manually set the ball's velocity, but is there a better way by setting the wall's properties? Thanks