We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
after it comes back to the ground, 3 weird things start happening:
I'm using cube size=0.02. With size=0.2 effect is still there, but less noticeable. Friction is default (=0.3, avg).
See demo here: https://www.youtube.com/watch?v=z_ke6jVr-BE
bevy = "0.11.3" bevy-inspector-egui = "0.20.0" bevy_xpbd_3d = { git = "https://github.com/Jondolf/bevy_xpbd", branch = "main", features = ["debug-plugin", "f64", "3d", "collider-from-mesh"], default-features = false }
use bevy::math::DVec3; use bevy::prelude::*; use bevy_inspector_egui::quick::WorldInspectorPlugin; use bevy_xpbd_3d::prelude as xpbd; fn main() { App::new() .add_plugins(DefaultPlugins) .add_plugins(xpbd::PhysicsPlugins::default()) .add_plugins(WorldInspectorPlugin::new()) .add_systems(Startup, setup) .run(); } fn setup(mut commands: Commands) { commands.spawn(Camera3dBundle { transform: Transform::from_xyz(0.3, 0.3, 1.0).looking_at(Vec3::ZERO, Vec3::Y), ..Default::default() }); commands.spawn(( xpbd::RigidBody::Static, xpbd::Collider::halfspace(DVec3::Y), xpbd::Restitution::new(0.7), )); commands.spawn(( xpbd::RigidBody::Dynamic, SpatialBundle::from_transform( Transform::from_xyz(0.1, 0.8, 0.0).looking_at(Vec3::ZERO, Vec3::Y), ), xpbd::Collider::cuboid(0.02, 0.02, 0.02), )); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
after it comes back to the ground, 3 weird things start happening:
I'm using cube size=0.02. With size=0.2 effect is still there, but less noticeable. Friction is default (=0.3, avg).
See demo here:
https://www.youtube.com/watch?v=z_ke6jVr-BE
The text was updated successfully, but these errors were encountered: