2) The objects pivot is calculated point which means that the basic scale is not well predictable
+
2) The object's pivot is calculated point which means that the basic scale is not well predictable
Solution: The pivot is calculated during the Object3D.build() command. After this line, the pivot can be read and edited
Solution: The pivot is calculated during the Object3D.build() command. After this line, the pivot can be read and edited
object.setRotationPivot(newPivot);
object.setRotationPivot(newPivot);
</pre>
</pre>
−
3) The object is also scaled by all the scales of its parents, so if the size of the mesh is 1 and the objects scale is 1 that does not mean that the size will be 1, because the object can have a parent with a scale not-equal 1.
+
3) The object is also scaled by all the scales of it's parents, so if the size of the mesh is 1 and the object's scale is 1 that does not mean that the size will be 1, because the object can have a parent with a scale not-equal 1.
−
Solution: Calculate the size from the scale of all objects parents.
+
Solution: Calculate the size from the scale of all object's parents.
<pre>
<pre>
public static SimpleVector getSize(Object3D object){
public static SimpleVector getSize(Object3D object){