![](/img/trans.png)
[英]How do I get z-axis coordinate from ply file for a given point ( x, y ) in python?
[英]How to Drag object by z-axis in python Ursina Engine module?
我不能通过z-axis拖动我的 3d WOOD
object 。 我试过:
class Wood(Draggable):
def __init__(self):
super().__init__(
parent='scene'
model='wood'
--all another parametres--
)
# it doesn't work. Wood moving only by x-axis and y-axis.
执行.plane_direction=(0,1,0)
和.lock=(1,1,0)
更改 plane_direction 会将您拖动的平面指向该方向。
您还应该将父级设置为scene
,而不是'scene'
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.