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

Redundant code in character controller offset example #57

Closed
softmoth opened this issue Feb 17, 2023 · 1 comment
Closed

Redundant code in character controller offset example #57

softmoth opened this issue Feb 17, 2023 · 1 comment

Comments

@softmoth
Copy link

docs/user_guides/bevy_plugin/character_controller#character-offset has two copies of the same code, with slightly different comments. Probably a merge gone wrong.

/* Configure the character controller when the collider is created. */
commands.spawn(Collider::ball(0.5))
    .insert(KinematicCharacterController {
        // The character offset is set to 0.01.
        offset: CharacterLength::Absolute(0.01),
        ..default()
    });

commands.spawn(Collider::ball(0.5))
    .insert(KinematicCharacterController {
        // The character offset is set to 0.01 multiplied by the collider’s height.
        offset: CharacterLength::Absolute(0.01),
        ..default()
    });
@Vrixyz
Copy link

Vrixyz commented May 22, 2024

The second offset is now Relative, thanks !

@Vrixyz Vrixyz closed this as completed May 22, 2024
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

2 participants