|
@@ -167,12 +167,12 @@ Quaternion.IDENTITY.fromAngleAxis(-FastMath.HALF_PI, Vector3f.UNIT_X);
|
|
|
This looks normal enough, after-all, this is a constant right? Sorta, what you are really doing is setting a value to the static final constant `Quaternion.IDENTITY`.
|
|
|
|
|
|
To quote one of the core team members.
|
|
|
-****
|
|
|
+
|
|
|
.Do not modify the "`constants`". You will have a shit-ton of really messed up errors.
|
|
|
[quote, pspeed, Core Team Member]
|
|
|
You gain NOTHING by doing this, either. Just use new Quaternion().fromAngles() like a sane person.
|
|
|
-****
|
|
|
For a deeper explaination, see this forum thread: link:https://hub.jmonkeyengine.org/t/quaternion-bug/39060[Quaternion bug?]
|
|
|
+
|
|
|
--
|
|
|
|
|
|
|