Skip to content
New issue

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

[XPBD] Cannot select Kinematic Bodies #332

Open
sweglord227 opened this issue May 23, 2024 · 0 comments
Open

[XPBD] Cannot select Kinematic Bodies #332

sweglord227 opened this issue May 23, 2024 · 0 comments

Comments

@sweglord227
Copy link

sweglord227 commented May 23, 2024

Creating an entity with the RigidBody::Kinematic component, bevy_mod_picking does not react to it in any way. Debug display shows no information on it, On events are not registered, and PickSelection component does not react to any and all inputs. This is unexpected behavior which i believe is not documented anywhere.

ex spawn:

commands.spawn((
    PickableBundle::default(),
    TransformBundle {
        local: Transform::from_xyz(0.0, 0.0, -2.0),
        ..default()
    },
    RigidBody::Kinematic,
    Collider::cuboid(1.0, 1.0, 1.0),
    On::<Pointer<Over>>::target_component_mut::<Transform>(|mouse, transform| {
        transform.translation += *transform.forward();
    }),
    XpbdPickable,
))

when moused over this entity will not move, and debug will show no information on it if you comment out the On component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant