forked from mtcontrib/maidroid
Compare commits
3 Commits
59fcc6875e
...
master
Author | SHA1 | Date | |
---|---|---|---|
1aec5b88a1 | |||
64ccb6950e | |||
003b950abc |
@ -122,7 +122,7 @@ end
|
|||||||
-- maidroid.maidroid.get_look_direction returns a normalized vector that is
|
-- maidroid.maidroid.get_look_direction returns a normalized vector that is
|
||||||
-- the maidroid's looking direction.
|
-- the maidroid's looking direction.
|
||||||
function maidroid.maidroid.get_look_direction(self)
|
function maidroid.maidroid.get_look_direction(self)
|
||||||
local yaw = self.object:getyaw()
|
local yaw = self.object:get_yaw()
|
||||||
return vector.normalize{x = -math.sin(yaw), y = 0.0, z = math.cos(yaw)}
|
return vector.normalize{x = -math.sin(yaw), y = 0.0, z = math.cos(yaw)}
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -135,7 +135,7 @@ end
|
|||||||
-- maidroid.maidroid.set_yaw_by_direction sets the maidroid's yaw
|
-- maidroid.maidroid.set_yaw_by_direction sets the maidroid's yaw
|
||||||
-- by a direction vector.
|
-- by a direction vector.
|
||||||
function maidroid.maidroid.set_yaw_by_direction(self, direction)
|
function maidroid.maidroid.set_yaw_by_direction(self, direction)
|
||||||
self.object:setyaw(math.atan2(direction.z, direction.x) - math.pi / 2)
|
self.object:set_yaw(math.atan2(direction.z, direction.x) - math.pi / 2)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- maidroid.maidroid.get_wield_item_stack returns the maidroid's wield item's stack.
|
-- maidroid.maidroid.get_wield_item_stack returns the maidroid's wield item's stack.
|
||||||
|
@ -1 +0,0 @@
|
|||||||
default
|
|
4
maidroid/mod.conf
Normal file
4
maidroid/mod.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
name = maidroid
|
||||||
|
title = Maidroid
|
||||||
|
description = Provide maid robots
|
||||||
|
depends = default
|
@ -1,2 +0,0 @@
|
|||||||
maidroid
|
|
||||||
pdisc?
|
|
5
maidroid_core/mod.conf
Normal file
5
maidroid_core/mod.conf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
name = maidroid_core
|
||||||
|
title = Maidroid Core
|
||||||
|
description = Provide cores for maidroid
|
||||||
|
depends = maidroid
|
||||||
|
optional_depends = pdisc
|
@ -1,6 +0,0 @@
|
|||||||
bucket
|
|
||||||
default
|
|
||||||
dye
|
|
||||||
wool
|
|
||||||
maidroid
|
|
||||||
maidroid_core
|
|
4
maidroid_tool/mod.conf
Normal file
4
maidroid_tool/mod.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
name = maidroid_tool
|
||||||
|
title = Maidroid Tool
|
||||||
|
description = Provide tools for Maidroids
|
||||||
|
depends = bucket,default,dye,wool,maidroid,maidroid_core
|
Reference in New Issue
Block a user