Bounce issue

Hello I am new user and this is my first post.

i made a physics body like this "Physics.addBody( ball, “dynamic”, { density = 1.0, friction = 0.3 , bounce = 0.8} )

i want that the bounce of the ball will increase when i tap the ball.how can i do this.plz help me.

Thanks in Advanced [import]uid: 176632 topic_id: 31351 reply_id: 331351[/import]

i would also like to know the answer to this one, i assume it is not possible to change the physics body properties after the body is created.this would mean you would need to delete the first body and create another one in its place with increased bounce.i hope i’m wrong about this :slight_smile: [import]uid: 80100 topic_id: 31351 reply_id: 125325[/import]

i did this but it was very akward and was not looking good. [import]uid: 176632 topic_id: 31351 reply_id: 125328[/import]

did you try to also replicate the old body’s linear and angular velocity? not that it could make it perfect, but it could look better, if you already didn’t do it… [import]uid: 80100 topic_id: 31351 reply_id: 125329[/import]

Another idea is to join two duplicate balls together using a weld joint, right at the center point. Both are dynamic bodies, but one (the more bouncy one) is a sensor and the other isn’t (to start). When you tap the ball, the sensor status of each ball “swaps”… the less bouncy ball becomes a sensor and the more bouncy ball becomes a non-sensor. So effectively, you only have one ball acting upon other physical objects (bouncing off them, etc.) while the jointed ball is a sensor that will not react physically with other world objects.

Brent
[import]uid: 9747 topic_id: 31351 reply_id: 125391[/import]

but it is not proper and good solution…i need its proper solution… [import]uid: 176632 topic_id: 31351 reply_id: 125406[/import]

Thanks nosheet its worked.it looks very good.Thank you very much [import]uid: 176632 topic_id: 31351 reply_id: 125407[/import]

i would also like to know the answer to this one, i assume it is not possible to change the physics body properties after the body is created.this would mean you would need to delete the first body and create another one in its place with increased bounce.i hope i’m wrong about this :slight_smile: [import]uid: 80100 topic_id: 31351 reply_id: 125325[/import]

i did this but it was very akward and was not looking good. [import]uid: 176632 topic_id: 31351 reply_id: 125328[/import]

did you try to also replicate the old body’s linear and angular velocity? not that it could make it perfect, but it could look better, if you already didn’t do it… [import]uid: 80100 topic_id: 31351 reply_id: 125329[/import]

Another idea is to join two duplicate balls together using a weld joint, right at the center point. Both are dynamic bodies, but one (the more bouncy one) is a sensor and the other isn’t (to start). When you tap the ball, the sensor status of each ball “swaps”… the less bouncy ball becomes a sensor and the more bouncy ball becomes a non-sensor. So effectively, you only have one ball acting upon other physical objects (bouncing off them, etc.) while the jointed ball is a sensor that will not react physically with other world objects.

Brent
[import]uid: 9747 topic_id: 31351 reply_id: 125391[/import]

but it is not proper and good solution…i need its proper solution… [import]uid: 176632 topic_id: 31351 reply_id: 125406[/import]

Thanks nosheet its worked.it looks very good.Thank you very much [import]uid: 176632 topic_id: 31351 reply_id: 125407[/import]