#Removing axis gizmos from sprites
5 messages · Page 1 of 1 (latest)
commands
.spawn(SpriteBundle {
sprite: Sprite {
color: Color::rgb(1.0, 1.0, 1.0),
..default()
},
..default()
})
.insert(Transform {
translation: Vec3::new(0.0, -325.0, 0.0),
scale: Vec3::new(5000.0, 70.0, 1.0),
..default()
})
.insert(RigidBody::Fixed)
.insert(Collider::cuboid(0.5, 0.5))
.insert(GroundMarker)
.insert(Name::new("Ground"));
the code for rendering the white ground
You probably need to change the bevy_rapier plugin settings
I was about to say the same thing. Maybe these settings:
https://docs.rs/bevy_rapier2d/latest/bevy_rapier2d/render/struct.RapierDebugRenderPlugin.html
Plugin rensponsible for rendering (using lines) what Rapier “sees” when performing its physics simulation. This is typically useful to check proper alignment between colliders and your own visual assets.