|
@@ -171,7 +171,7 @@ Use the simpleInitApp() method in SimpleApplication (or initApp() in Application
|
|
|
|
|
|
|
|
=== How do I move or turn or resize a spatial?
|
|
=== How do I move or turn or resize a spatial?
|
|
|
|
|
|
|
|
-To move or turn or resize a spatial you use transformations. You can concatenate transformations (e.g. perform rotations around several axes in one step using a Quaternion with `slerp()` or a com.jme3.math.Transform with interpolateTransforms().
|
|
|
|
|
|
|
+To move or turn or resize a spatial you use transformations. You can concatenate transformations (e.g. perform rotations around several axes in one step using a <<jme3/rotate.html#,Quaternion>> with `slerp()` or a com.jme3.math.Transform with interpolateTransforms().
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
|
----
|
|
----
|
|
@@ -626,7 +626,7 @@ Add an link:http://netbeans.dzone.com/tips/obfuscating-netbeans-java-appl[obfusc
|
|
|
Many maths functions (mult(), add(), subtract(), etc) come as local and a non-local variant (multLocal(), addLocal(), subtractLocal(), etc).
|
|
Many maths functions (mult(), add(), subtract(), etc) come as local and a non-local variant (multLocal(), addLocal(), subtractLocal(), etc).
|
|
|
|
|
|
|
|
. Non-local means a new independent object is created (similar to clone()) as a return value. Use non-local methods if you want to keep using the old value of the object calling the method.
|
|
. Non-local means a new independent object is created (similar to clone()) as a return value. Use non-local methods if you want to keep using the old value of the object calling the method.
|
|
|
-** Example 1: `Quaternion q1 = q2.mult(q3);`
|
|
|
|
|
|
|
+** Example 1: `<<jme3/rotate.html#,Quaternion>> q1 = q2.mult(q3);`
|
|
|
*** Returns the result as a new Quaternion q1.
|
|
*** Returns the result as a new Quaternion q1.
|
|
|
*** The involved objects q2 and q3 stay as they are and can be reused.
|
|
*** The involved objects q2 and q3 stay as they are and can be reused.
|
|
|
|
|
|