mirror of
https://github.com/eliasstepanik/big_space_with_trim.git
synced 2026-01-24 17:58:27 +00:00
parent
a1a395290e
commit
1a1f7ebc39
@ -183,7 +183,9 @@ pub struct FloatingOriginSettings {
|
||||
}
|
||||
|
||||
impl FloatingOriginSettings {
|
||||
fn new(grid_edge_length: f32, switching_threshold: f32) -> Self {
|
||||
/// Construct a new [`FloatingOriginSettings`] struct. This cannot be updated after the plugin
|
||||
/// is built.
|
||||
pub fn new(grid_edge_length: f32, switching_threshold: f32) -> Self {
|
||||
Self {
|
||||
grid_edge_length,
|
||||
maximum_distance_from_origin: grid_edge_length / 2.0 + switching_threshold,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user