vrml实现门的开关功能,旋转轴不在中间,在左侧,最好写明旋转轴是怎样设置的,谢谢这是门的位置DEF zm Transform { translation -539.9 15 516.8 rotation -1 0 0 -1.571 children [ Transform { translation 0 2.5
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 10:05:53
vrml实现门的开关功能,旋转轴不在中间,在左侧,最好写明旋转轴是怎样设置的,谢谢这是门的位置DEF zm Transform { translation -539.9 15 516.8 rotation -1 0 0 -1.571 children [ Transform { translation 0 2.5
vrml实现门的开关功能,旋转轴不在中间,在左侧,最好写明旋转轴是怎样设置的,谢谢
这是门的位置
DEF zm Transform {
translation -539.9 15 516.8
rotation -1 0 0 -1.571
children [
Transform {
translation 0 2.5 0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.588 0.588 0.588
ambientIntensity 1.0
specularColor 0 0 0
shininess 0.145
transparency 0
}
}
geometry Box { size 50 5 30 }
}
] }
]
}
vrml实现门的开关功能,旋转轴不在中间,在左侧,最好写明旋转轴是怎样设置的,谢谢这是门的位置DEF zm Transform { translation -539.9 15 516.8 rotation -1 0 0 -1.571 children [ Transform { translation 0 2.5
设置Transform的center域.例子:
#VRML V2.0 utf8
DEF zm Transform {
rotation 0 1 0 -1.571
center -15 0 0
children [
Transform {
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.588 0.588 0.588
}
}
geometry Box { size 30 50 5 }
}
] }
]
}
Shape {
appearance Appearance {
material Material {
diffuseColor 0.1 0.1 0.588
}
}
geometry Box { size 30 50 5 }
}