@@ -101,28 +101,29 @@ def generate_shaft_door(self, world_ele, x, y, z, yaw, name):
101101 if self .plugin :
102102 self .generate_door_plugin (model_ele , name , False )
103103
104- def generate_joint (self , parent_element , parent_name = "world" , child_name = None ):
104+ def generate_joint (
105+ self , parent_element , parent_name = "world" , child_name = None ):
105106 if child_name is not None :
106107 name_prefix = f'{ child_name } _'
107108 joint_child_prefix = f'{ child_name } ::'
108109 else :
109110 name_prefix = ''
110111 joint_child_prefix = f''
111112 parent_element .append (joint (f'{ name_prefix } right_joint' ,
112- 'prismatic' ,
113- parent_name ,
114- f'{ joint_child_prefix } right_door' ,
115- joint_axis = 'x' ,
116- lower_limit = 0 ,
117- upper_limit = self .width / 2 ))
113+ 'prismatic' ,
114+ parent_name ,
115+ f'{ joint_child_prefix } right_door' ,
116+ joint_axis = 'x' ,
117+ lower_limit = 0 ,
118+ upper_limit = self .width / 2 ))
118119
119120 parent_element .append (joint (f'{ name_prefix } left_joint' ,
120- 'prismatic' ,
121- parent_name ,
122- f'{ joint_child_prefix } left_door' ,
123- joint_axis = 'x' ,
124- lower_limit = - self .width / 2 ,
125- upper_limit = 0 ))
121+ 'prismatic' ,
122+ parent_name ,
123+ f'{ joint_child_prefix } left_door' ,
124+ joint_axis = 'x' ,
125+ lower_limit = - self .width / 2 ,
126+ upper_limit = 0 ))
126127
127128 def generate_door_link (self , model_ele , parent = 'world' ):
128129 door_size = [self .width / 2 , self .thickness , self .height ]
0 commit comments