Slide 65
Slide 65 text
COPYRIGHT 2016 @ UNITY TECHNOLOGIES JAPAN
COPYRIGHT 2016 @ UNITY TECHNOLOGIES JAPAN
֎ੵͱɾɾɾ
•֎ੵͷ݁ՌϕΫτϧʂ
•AxB ͱදه͢Δʢ͜ͱ͕ଟ͍ʣ
•x͔ͩΒΫϩεੵͱݺͿɻӳޠͰݴ͏ͱ cross product
•Unity Ͱ Vector3.Cross ͱ͍͏ؔ
•var C = Vector3.Cross(A, B); ͱॻ͘ͱɺ ϕΫτϧCAxBʹͳΔ
•ϕΫτϧ A:(Ax, Ay, Az) ͱ B:(Bx, By, Bz) ͷ֎ੵΛ C:(Cx, Cy, Cz) ͱ͢Δͱ
Cx = AyBz - AzBy
Cy = AzBx - AxBz
Cz = AxBy - AyBx ͳʹΒਆൿతɾɾɾʂɹɹɹɹɹɹɹɹɹɹɹ