You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a body with the KinematicCharacterController component, I want to offset the collider on this body from the centre (since the sprite isn't centred). I tried the following but the character controller doesn't work without a collider attached directly to it:
commands
.spawn(RigidBody::KinematicPositionBased).insert(KinematicCharacterController::default()).insert(SpriteSheetBundle{sprite:TextureAtlasSprite{index:0,
..Default::default()},texture_atlas: atlas,transform:Transform::from_xyz(0.0,0.0,1.0),
..Default::default()}).with_children(|children| {
children
.spawn(Collider::cuboid(6.5,10.5)).insert(TransformBundle::from_transform(Transform::from_xyz(1.0, -8.0,0.0,)));});
The text was updated successfully, but these errors were encountered:
I have a body with the
KinematicCharacterController
component, I want to offset the collider on this body from the centre (since the sprite isn't centred). I tried the following but the character controller doesn't work without a collider attached directly to it:The text was updated successfully, but these errors were encountered: