You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run this code, it seems to work, however the height the bouncing cube reaches slowly decreases, and after a while it simply no longer bounces.
I would expect that Restitution::PERFECTLY_ELASTIC would mean there is no loss in height, and that the cube will bounce forever, am I doing something wrong?
Crate(s) and features:
avian2d = { version = "0.1.2", default-features = false, features = ["2d", "bevy_scene", "debug-plugin", "default-collider", "f64", "parry-f64", "parallel", "simd"] }
bevy = { version = "0.14.2", features = ["flac", "wayland"] }
log = { version = "0.4.22", features = ["max_level_info", "release_max_level_warn"] }
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I was curious about this crate, so I wrote some code to see how well it works:
When I run this code, it seems to work, however the height the bouncing cube reaches slowly decreases, and after a while it simply no longer bounces.
I would expect that
Restitution::PERFECTLY_ELASTIC
would mean there is no loss in height, and that the cube will bounce forever, am I doing something wrong?Crate(s) and features:
Beta Was this translation helpful? Give feedback.
All reactions