pub struct RoadMeshConfig {
pub major_half_width: f32,
pub minor_half_width: f32,
pub hub_sides: u32,
pub depth_bias: f32,
pub texture_scale: f32,
pub spline_subdivisions: u32,
pub curb_radius: f32,
pub skirt: SkirtConfig,
}Expand description
Configuration for 3D road mesh generation.
Fields§
§major_half_width: f32Half-width of major roads (world units).
minor_half_width: f32Half-width of minor roads (world units).
hub_sides: u32Number of sides for dead-end cap polygons (e.g. 8 = octagon).
depth_bias: f32Depth bias: vertices are raised above the terrain by this amount to prevent z-fighting.
texture_scale: f32UV texture scale: world units per texture repeat.
spline_subdivisions: u32Legacy: subdivisions per graph edge for Catmull-Rom spline ribbons. Ignored when the graph has been rationalized (geometry is already smooth).
curb_radius: f32Extra radius added to dead-end caps beyond the road half-width, creating a wider turning zone (world units).
skirt: SkirtConfigEmbankment skirt configuration.
Trait Implementations§
Source§impl Clone for RoadMeshConfig
impl Clone for RoadMeshConfig
Source§fn clone(&self) -> RoadMeshConfig
fn clone(&self) -> RoadMeshConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoadMeshConfig
impl Debug for RoadMeshConfig
Auto Trait Implementations§
impl Freeze for RoadMeshConfig
impl RefUnwindSafe for RoadMeshConfig
impl Send for RoadMeshConfig
impl Sync for RoadMeshConfig
impl Unpin for RoadMeshConfig
impl UnsafeUnpin for RoadMeshConfig
impl UnwindSafe for RoadMeshConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more