我是coffeescript的新手.有没有办法让这三行设置旋转并完成相同的事情,就像你在python中通过解压缩元组一样?
@cosines = [0,1,0]
@branch.rotation.x = Math.asin(@cosines.x)
@branch.rotation.y = Math.asin(@cosines.y)
@branch.rotation.z = Math.asin(@cosines.z)
Run Code Online (Sandbox Code Playgroud) coffeescript ×1