Be careful|

sy0313

园龄:4年9个月粉丝:10关注:1

04 2023 档案

three.js中某个物体跟随camera进行旋转
摘要:const camera = useThree().camera; const borderRef = useRef(); useFrame(()=>{ //通过反正切函数,获得在Y轴旋转的角度。由欧拉角定义可如此设置。 borderRef.current.rotation.y = Math.ata
702
0
0
点击右上角即可分享
微信分享提示
深色
回顶
收起