|
@@ -312,7 +312,7 @@ There are lots of resources explaining interesting AI algorithms:
|
|
|
== Math
|
|
== Math
|
|
|
|
|
|
|
|
|
|
|
|
|
-image::jme3/intermediate/coordinate-system.png[coordinate-system.png,with="235",height="210",align="right"]
|
|
|
|
|
|
|
+image::jme3/intermediate/coordinate-system.png[coordinate-system.png,235,210,align="right"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -365,7 +365,7 @@ When you normalize a vector, it still has the same direction, but you lose the i
|
|
|
==== Surface Normal Vectors
|
|
==== Surface Normal Vectors
|
|
|
|
|
|
|
|
|
|
|
|
|
-image::jme3/300px-surface_normal.png[300px-surface_normal.png,with="",height="",align="right"]
|
|
|
|
|
|
|
+image::jme3/300px-surface_normal.png[300px-surface_normal.png,width="",height="",align="right"]
|
|
|
|
|
|
|
|
A surface normal is a vector that is perpendicular (orthogonal) to a plane.
|
|
A surface normal is a vector that is perpendicular (orthogonal) to a plane.
|
|
|
You calculate the Surface Normal by calculating the cross product.
|
|
You calculate the Surface Normal by calculating the cross product.
|