I am new to game development scene so I maybe missing something obvious but I can't figure it out
I have this player entity, with a sprite that is 128*128px
pub fn spawn_player(
mut commands: Commands,
asset_server: Res<AssetServer>,
mut texture_atlases: ResMut<Assets<TextureAtlas>>,
) {
commands
.spawn(Player)
.insert(Name::new("Player"))
.insert(Camera2dBundle::default())
.insert(Player::sprite_sheet_bundle(
&asset_server,
&mut texture_atlases,
))
.insert(Collider::capsule_y(20.0, 15.0))
.insert(RigidBody::Dynamic)
.insert(KinematicCharacterController::default());
}
and the collider doesn't match the size of the sprite nor have the same anchor point