vrml实现门的开关功能,旋转轴不在中间,在左侧,最好写明旋转轴是怎样设置的,谢谢

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 }
}
] }
]
}
辉_季节之中 1年前 已收到1个回答 举报

林_囡囡 幼苗

共回答了17个问题采纳率:94.1% 举报

设置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 }
}

1年前

10
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.032 s. - webmaster@yulucn.com