diff --git a/src/alternativa/engine3d/core/View.as b/src/alternativa/engine3d/core/View.as index ec25310..67c1367 100644 --- a/src/alternativa/engine3d/core/View.as +++ b/src/alternativa/engine3d/core/View.as @@ -309,6 +309,11 @@ package alternativa.engine3d.core { addEventListener(Event.REMOVED_FROM_STAGE, onRemoveFromStage); } + /** + * If true, you will able to handle following events MouseEvent3D.RIGHT_CLICK, + * MouseEvent3D.RIGHT_MOUSE_DOWN, MouseEvent3D.RIGHT_MOUSE_UP. + * The context menu will no longer open on clicking right mouse button. + */ public function get rightClick3DEnabled():Boolean { return _rightClick3DEnabled; } diff --git a/src/alternativa/engine3d/materials/TextureMaterial.as b/src/alternativa/engine3d/materials/TextureMaterial.as index 3504555..80ea821 100644 --- a/src/alternativa/engine3d/materials/TextureMaterial.as +++ b/src/alternativa/engine3d/materials/TextureMaterial.as @@ -34,7 +34,7 @@ package alternativa.engine3d.materials { use namespace alternativa3d; /** - * The materiall fills surface with bitmap image in light-independent manner. Can draw a Skin with no more than 41 Joints per surface. See Skin.divide() for more details. + * The material fills surface with bitmap image in light-independent manner. Can draw a Skin with no more than 41 Joints per surface. See Skin.divide() for more details. * * To be drawn with this material, geometry shoud have UV coordinates. * @see alternativa.engine3d.objects.Skin#divide() @@ -113,19 +113,19 @@ package alternativa.engine3d.materials { public var opacityMap:TextureResource; /** - * If true, perform transparent pass. Parts of surface, cumulative alpha value of which is below than alphaThreshold draw within transparent pass. + * If true, perform transparent pass. Parts of surface, cumulative alpha value of which is below than alphaThreshold will be drawn within transparent pass. * @see #alphaThreshold */ public var transparentPass:Boolean = true; /** - * If true, perform opaque pass. Parts of surface, cumulative alpha value of which is greater or equal than alphaThreshold draw within opaque pass. + * If true, perform opaque pass. Parts of surface, cumulative alpha value of which is greater or equal than alphaThreshold will be drawn within opaque pass. * @see #alphaThreshold */ public var opaquePass:Boolean = true; /** - * alphaThreshold defines starts from which value of alpha a fragment of surface will get into transparent pass. + * alphaThreshold defines starts from which value of alpha a fragment of the surface will get into transparent pass. * @see #transparentPass * @see #opaquePass */ diff --git a/src/alternativa/engine3d/utils/Object3DUtils.as b/src/alternativa/engine3d/utils/Object3DUtils.as index 3808a6a..6aaa4f1 100644 --- a/src/alternativa/engine3d/utils/Object3DUtils.as +++ b/src/alternativa/engine3d/utils/Object3DUtils.as @@ -42,8 +42,13 @@ package alternativa.engine3d.utils { } /** - * @private - * Performs calculation of bound box of objects hierarchy branch. + * Calculates a BoundBox of hierarchy of objects. + * + * @param object Container which contains the hierarchy. + * @param boundBoxSpace Object3D in coordinates of which the BoundBox will be calculated. + * @param result Instance of BoundBox to which calculated properties will be set. + * + * @return Instance given as result property with properties updated according to calculations. If result property was not set, new instance of BoundBox will be created. */ public static function calculateHierarchyBoundBox(object:Object3D, boundBoxSpace:Object3D = null, result:BoundBox = null):BoundBox { if (result == null) result = new BoundBox();