#6427 Score: 1
oxine
Participant
9 pts

原来的代码不是这样的嘛
// Vector t = (x*y/sqrt(x*x+z*z),sqrt(x*x+z*z),z*y/sqrt(x*x+z*z))
其实把y分量取minus就行了,
// Vector t = (x*y/sqrt(x*x+z*z),-sqrt(x*x+z*z),z*y/sqrt(x*x+z*z))
你再和normal dot一下看看垂不垂直

This post has received 1 vote up.