Skip to content

RapierDebugRenderPlugin does not render colliders added as custom_shape. #688

@Szustarol

Description

@Szustarol

Basically the title.
This bundle:

        .insert((
            RigidBody::KinematicPositionBased,
            KinematicCharacterController::default(),
            Collider::capsule_z(0.3, 0.3),
            GravityScale(0.0),
        ))

Will render a capsule in the debug view.
This, however:

        .insert((
            RigidBody::KinematicPositionBased,
            KinematicCharacterController {
                custom_shape: Some((
                    Collider::capsule_z(0.3, 0.3),
                    Vec3::new(0.0, 0.0, 0.0),
                    Rot::IDENTITY,
                )),
                ..default()
            },
            GravityScale(0.0),
        ))

will not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions