File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ fn main() {
1313        . add_plugins ( ( 
1414            DefaultPlugins , 
1515            RapierPhysicsPlugin :: < NoUserData > :: default ( ) 
16-                 . with_default_world ( RapierContextInitialization :: NoAutomaticRapierContext ) , 
16+                 . with_custom_initialization ( RapierContextInitialization :: NoAutomaticRapierContext ) , 
1717            RapierDebugRenderPlugin :: default ( ) , 
1818        ) ) 
1919        . add_systems ( 
Original file line number Diff line number Diff line change 5050    /// Specifies a default world initialization strategy. 
5151/// 
5252/// The default is to initialize a [`RapierContext`] with a length unit of 1. 
53- pub  fn  with_default_world ( 
53+ pub  fn  with_custom_initialization ( 
5454        mut  self , 
5555        default_world_initialization :  RapierContextInitialization , 
5656    )  -> Self  { 
@@ -215,7 +215,7 @@ where
215215        let  default_world_init = app. world ( ) . get_resource :: < RapierContextInitialization > ( ) ; 
216216        if  let  Some ( world_init)  = default_world_init { 
217217            warn ! ( "RapierPhysicsPlugin added but a `RapierContextInitialization` resource was already existing.\  
218- with_default_world `\ 
218+ with_custom_initialization `\ 
219219
220220            The following resource will be used: {:?}" ,  world_init) ; 
221221        }  else  { 
@@ -272,7 +272,7 @@ where
272272
273273/// Specifies a default configuration for the default [`RapierContext`] 
274274/// 
275- /// Designed to be passed as parameter to [`RapierPhysicsPlugin::with_default_world `]. 
275+ /// Designed to be passed as parameter to [`RapierPhysicsPlugin::with_custom_initialization `]. 
276276#[ derive( Resource ,  Debug ,  Reflect ,  Clone ) ]  
277277pub  enum  RapierContextInitialization  { 
278278    /// [`RapierPhysicsPlugin`] will not spawn any entity containing [`RapierContext`] automatically. 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments