mirror of
				https://github.com/tacigar/maidroid.git
				synced 2025-10-31 11:15:22 +01:00 
			
		
		
		
	[UPDATE] Use automatic_face_movement_dir
This commit is contained in:
		| @@ -324,6 +324,7 @@ function maidroid.register_maidroid(product_name, def) | |||||||
| 		collisionbox                 = {-0.25, -0.5, -0.25, 0.25, 1.05, 0.25}, | 		collisionbox                 = {-0.25, -0.5, -0.25, 0.25, 1.05, 0.25}, | ||||||
| 		is_visible                   = true, | 		is_visible                   = true, | ||||||
| 		makes_footstep_sound         = true, | 		makes_footstep_sound         = true, | ||||||
|  | 		automatic_face_movement_dir  = 90.0, | ||||||
|  |  | ||||||
| 		-- extra initial properties | 		-- extra initial properties | ||||||
| 		pause                        = false, | 		pause                        = false, | ||||||
|   | |||||||
| @@ -45,7 +45,6 @@ local function on_step(self, dtime) | |||||||
| 		end | 		end | ||||||
| 		self.object:setvelocity{x = direction.x, y = velocity.y, z = direction.z} -- TODO | 		self.object:setvelocity{x = direction.x, y = velocity.y, z = direction.z} -- TODO | ||||||
| 	end | 	end | ||||||
| 	self:set_yaw_by_direction(direction) |  | ||||||
|  |  | ||||||
| 	-- if maidroid is stoped by obstacle, the maidroid must jump. | 	-- if maidroid is stoped by obstacle, the maidroid must jump. | ||||||
| 	if velocity.y == 0 and self.state == state.ACCOMPANY then | 	if velocity.y == 0 and self.state == state.ACCOMPANY then | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user