| Package | away3d.core.base |
| Class | public class Object3D |
| Inheritance | Object3D flash.events.EventDispatcher |
| Implements | IClonable |
| Subclasses | AmbientLight3D, BaseMesh, Camera3D, ConvexBlock, DirectionalLight3D, DirSprite2D, DofSprite2D, Morpher, MovieClipSprite, ObjectContainer3D, PointLight3D, Sprite2D |
| Property | Defined by | ||
|---|---|---|---|
| alpha : Number
An optional alpha value that can be applied to the 3d object.
| Object3D | ||
| blendMode : String
An optional blend mode that can be applied to the 3d object.
| Object3D | ||
| boundingRadius : Number [read-only]
Returns the bounding radius of the 3d object
| Object3D | ||
| extra : Object
An optional untyped object that can contain used-defined properties
| Object3D | ||
| filters : Array
An optional array of filters that can be applied to the 3d object.
| Object3D | ||
| inverseSceneTransform : Matrix3D | Object3D | ||
| maxX : Number [read-only]
Returns the maximum x value of the 3d object
| Object3D | ||
| maxY : Number [read-only]
Returns the maximum y value of the 3d object
| Object3D | ||
| maxZ : Number [read-only]
Returns the maximum z value of the 3d object
| Object3D | ||
| minX : Number [read-only]
Returns the minimum x value of the 3d object
| Object3D | ||
| minY : Number [read-only]
Returns the minimum y value of the 3d object
| Object3D | ||
| minZ : Number [read-only]
Returns the minimum z value of the 3d object
| Object3D | ||
| mouseEnabled : Boolean = true
Defines whether mouse events are received on the 3d object
| Object3D | ||
| name : String
An optional name string for the 3d object.
| Object3D | ||
| ownCanvas : Boolean = false
Defines whether the contents of the 3d object are rendered inside it's own sprite
| Object3D | ||
| ownSession : AbstractRenderSession
Defines whether the contents of the 3d object are rendered using it's own render session
| Object3D | ||
| parent : ObjectContainer3D
Defines the parent of the 3d object.
| Object3D | ||
| position : Number3D
Defines the position of the 3d object, relative to the local coordinates of the parent
ObjectContainer3D. | Object3D | ||
| projection : Projection | Object3D | ||
| rotationX : Number
Defines the euler angle of rotation of the 3d object around the x-axis, relative to the local coordinates of the parent
ObjectContainer3D. | Object3D | ||
| rotationY : Number
Defines the euler angle of rotation of the 3d object around the y-axis, relative to the local coordinates of the parent
ObjectContainer3D. | Object3D | ||
| rotationZ : Number
Defines the euler angle of rotation of the 3d object around the z-axis, relative to the local coordinates of the parent
ObjectContainer3D. | Object3D | ||
| scene : Scene3D
[read-only]
Returns the parent scene of the 3d object
| Object3D | ||
| scenePosition : Number3D
[read-only]
Returns the position of the 3d object, relative to the global coordinates of the
Scene3D. | Object3D | ||
| sceneTransform : Matrix3D
[read-only]
Returns the transformation of the 3d object, relative to the global coordinates of the
Scene3D. | Object3D | ||
| sceneTransformed : Boolean | Object3D | ||
| session : AbstractRenderSession
The render session used by the 3d object
| Object3D | ||
| transform : Matrix3D
Defines the transformation of the 3d object, relative to the local coordinates of the parent
ObjectContainer3D. | Object3D | ||
| useHandCursor : Boolean = false
Defines whether a hand cursor is displayed when the mouse rolls over the 3d object.
| Object3D | ||
| viewTransform : Matrix3D | Object3D | ||
| visible : Boolean = true
Defines whether the 3d object is visible in the scene
| Object3D | ||
| x : Number
Defines the x coordinate of the 3d object relative to the local coordinates of the parent
ObjectContainer3D. | Object3D | ||
| y : Number
Defines the y coordinate of the 3d object relative to the local coordinates of the parent
ObjectContainer3D. | Object3D | ||
| z : Number
Defines the z coordinate of the 3d object relative to the local coordinates of the parent
ObjectContainer3D. | Object3D | ||
| Property | Defined by | ||
|---|---|---|---|
| ini : Init
Instance of the Init object used to hold and parse default property values
specified by the initialiser object in the 3d object constructor.
| Object3D | ||
| Method | Defined by | ||
|---|---|---|---|
|
addOnDimensionsChange(listener:Function):void
Default method for adding a dimensionschanged event listener
| Object3D | ||
|
addOnMouseDown(listener:Function):void
Default method for adding a mouseDown3D event listener
| Object3D | ||
|
addOnMouseMove(listener:Function):void
Default method for adding a mouseMove3D event listener
| Object3D | ||
|
addOnMouseOut(listener:Function):void
Default method for adding a mouseOut3D event listener
| Object3D | ||
|
addOnMouseOver(listener:Function):void
Default method for adding a mouseOver3D event listener
| Object3D | ||
|
addOnMouseUp(listener:Function):void
Default method for adding a mouseUp3D event listener
| Object3D | ||
|
addOnRadiusChange(listener:Function):void
Default method for adding a radiuschanged event listener
| Object3D | ||
|
addOnSceneChange(listener:Function):void
Default method for adding a scenechanged event listener
| Object3D | ||
|
addOnSceneTransformChange(listener:Function):void
Default method for adding a scenetransformchanged event listener
| Object3D | ||
|
addOnTransformChange(listener:Function):void
Default method for adding a transformchanged event listener
| Object3D | ||
|
clone(object:* = null):*
Duplicates the 3d object's properties to another
Object3D object
| Object3D | ||
|
Calulates the absolute distance between the local 3d object position and the position of the given 3d object
| Object3D | ||
|
Rotates the 3d object around to face a point defined relative to the local coordinates of the parent
ObjectContainer3D. | Object3D | ||
|
moveBackward(distance:Number):void
Moves the 3d object backwards along it's local z axis
| Object3D | ||
|
moveDown(distance:Number):void
Moves the 3d object backwards along it's local y axis
| Object3D | ||
|
moveForward(distance:Number):void
Moves the 3d object forwards along it's local z axis
| Object3D | ||
|
moveLeft(distance:Number):void
Moves the 3d object backwards along it's local x axis
| Object3D | ||
|
moveRight(distance:Number):void
Moves the 3d object forwards along it's local x axis
| Object3D | ||
|
Moves the 3d object directly to a point in space
| Object3D | ||
|
moveUp(distance:Number):void
Moves the 3d object forwards along it's local y axis
| Object3D | ||
|
pitch(angle:Number):void
Rotates the 3d object around it's local x-axis
| Object3D | ||
|
Called from the
PrimitiveTraverser when passing DrawPrimitive objects to the primitive consumer object
| Object3D | ||
|
removeOnDimensionsChange(listener:Function):void
Default method for removing a dimensionschanged event listener
| Object3D | ||
|
removeOnMouseDown(listener:Function):void
Default method for removing a mouseDown3D event listener
| Object3D | ||
|
removeOnMouseMove(listener:Function):void
Default method for removing a mouseMove3D event listener
| Object3D | ||
|
removeOnMouseOut(listener:Function):void
Default method for removing a mouseOut3D event listener
| Object3D | ||
|
removeOnMouseOver(listener:Function):void
Default method for removing a mouseOver3D event listener
| Object3D | ||
|
removeOnMouseUp(listener:Function):void
Default method for removing a mouseUp3D event listener
| Object3D | ||
|
removeOnRadiusChange(listener:Function):void
Default method for removing a radiuschanged event listener
| Object3D | ||
|
removeOnSceneChange(listener:Function):void
Default method for removing a scenechanged event listener
| Object3D | ||
|
removeOnSceneTransformChange(listener:Function):void
Default method for removing a scenetransformchanged event listener
| Object3D | ||
|
removeOnTransformChange(listener:Function):void
Default method for removing a transformchanged event listener
| Object3D | ||
|
roll(angle:Number):void
Rotates the 3d object around it's local z-axis
| Object3D | ||
|
Rotates the 3d object around an axis by a defined angle
| Object3D | ||
|
scale(scale:Number):void
Scales the contents of the 3d object.
| Object3D | ||
|
tick(time:int):void
Called by the
TickTraverser. | Object3D | ||
|
toString():String
Used to trace the values of a 3d object.
| Object3D | ||
|
Moves the 3d object along a vector by a defined length
| Object3D | ||
|
Used when traversing the scenegraph
| Object3D | ||
|
yaw(angle:Number):void
Rotates the 3d object around it's local y-axis
| Object3D | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when the bounding dimensions of the 3d object changes. | Object3D | |||
| Dispatched when a user presses the let hand mouse button while the cursor is over the 3d object. | Object3D | |||
| Dispatched when a user moves the cursor while it is over the 3d object. | Object3D | |||
| Dispatched when a user moves the cursor away from the 3d object. | Object3D | |||
| Dispatched when a user moves the cursor over the 3d object. | Object3D | |||
| Dispatched when a user releases the let hand mouse button while the cursor is over the 3d object. | Object3D | |||
| Dispatched when the bounding radius of the 3d object changes. | Object3D | |||
| Dispatched when the parent scene of the 3d object changes | Object3D | |||
| Dispatched when the scene transform matrix of the 3d object changes. | Object3D | |||
| Dispatched when the local transform matrix of the 3d object changes. | Object3D | |||
| alpha | property |
public var alpha:Number
An optional alpha value that can be applied to the 3d object.
Requires ownCanvas to be set to true.
See also
| blendMode | property |
public var blendMode:String
An optional blend mode that can be applied to the 3d object.
Requires ownCanvas to be set to true.
See also
| boundingRadius | property |
boundingRadius:Number [read-only]Returns the bounding radius of the 3d object
Implementation public function get boundingRadius():Number
| extra | property |
public var extra:Object
An optional untyped object that can contain used-defined properties
| filters | property |
public var filters:Array
An optional array of filters that can be applied to the 3d object.
Requires ownCanvas to be set to true.
See also
| ini | property |
protected var ini:Init
Instance of the Init object used to hold and parse default property values specified by the initialiser object in the 3d object constructor.
| inverseSceneTransform | property |
public var inverseSceneTransform:Matrix3D
| maxX | property |
maxX:Number [read-only]Returns the maximum x value of the 3d object
Implementation public function get maxX():Number
See also
| maxY | property |
maxY:Number [read-only]Returns the maximum y value of the 3d object
Implementation public function get maxY():Number
See also
| maxZ | property |
maxZ:Number [read-only]Returns the maximum z value of the 3d object
Implementation public function get maxZ():Number
See also
| minX | property |
minX:Number [read-only]Returns the minimum x value of the 3d object
Implementation public function get minX():Number
See also
| minY | property |
minY:Number [read-only]Returns the minimum y value of the 3d object
Implementation public function get minY():Number
See also
| minZ | property |
minZ:Number [read-only]Returns the minimum z value of the 3d object
Implementation public function get minZ():Number
See also
| mouseEnabled | property |
public var mouseEnabled:Boolean = true
Defines whether mouse events are received on the 3d object
| name | property |
public var name:String
An optional name string for the 3d object.
Can be used to access specific 3d object in a scene by calling the getChildByName method on the parent ObjectContainer3D.
See also
| ownCanvas | property |
public var ownCanvas:Boolean = false
Defines whether the contents of the 3d object are rendered inside it's own sprite
| ownSession | property |
public var ownSession:AbstractRenderSession
Defines whether the contents of the 3d object are rendered using it's own render session
| parent | property |
parent:ObjectContainer3D [read-write]Defines the parent of the 3d object.
Implementation public function get parent():ObjectContainer3D
public function set parent(value:ObjectContainer3D):void
| position | property |
position:Number3D [read-write]
Defines the position of the 3d object, relative to the local coordinates of the parent ObjectContainer3D.
public function get position():Number3D
public function set position(value:Number3D):void
| projection | property |
public var projection:Projection
| rotationX | property |
rotationX:Number [read-write]
Defines the euler angle of rotation of the 3d object around the x-axis, relative to the local coordinates of the parent ObjectContainer3D.
public function get rotationX():Number
public function set rotationX(value:Number):void
| rotationY | property |
rotationY:Number [read-write]
Defines the euler angle of rotation of the 3d object around the y-axis, relative to the local coordinates of the parent ObjectContainer3D.
public function get rotationY():Number
public function set rotationY(value:Number):void
| rotationZ | property |
rotationZ:Number [read-write]
Defines the euler angle of rotation of the 3d object around the z-axis, relative to the local coordinates of the parent ObjectContainer3D.
public function get rotationZ():Number
public function set rotationZ(value:Number):void
| scene | property |
scene:Scene3D [read-only]Returns the parent scene of the 3d object
Implementation public function get scene():Scene3D
| scenePosition | property |
scenePosition:Number3D [read-only]
Returns the position of the 3d object, relative to the global coordinates of the Scene3D.
public function get scenePosition():Number3D
| sceneTransform | property |
sceneTransform:Matrix3D [read-only]
Returns the transformation of the 3d object, relative to the global coordinates of the Scene3D.
public function get sceneTransform():Matrix3D
| sceneTransformed | property |
public var sceneTransformed:Boolean
| session | property |
| transform | property |
transform:Matrix3D [read-write]
Defines the transformation of the 3d object, relative to the local coordinates of the parent ObjectContainer3D.
public function get transform():Matrix3D
public function set transform(value:Matrix3D):void
| useHandCursor | property |
public var useHandCursor:Boolean = false
Defines whether a hand cursor is displayed when the mouse rolls over the 3d object.
| viewTransform | property |
public var viewTransform:Matrix3D
| visible | property |
public var visible:Boolean = true
Defines whether the 3d object is visible in the scene
| x | property |
x:Number [read-write]
Defines the x coordinate of the 3d object relative to the local coordinates of the parent ObjectContainer3D.
public function get x():Number
public function set x(value:Number):void
| y | property |
y:Number [read-write]
Defines the y coordinate of the 3d object relative to the local coordinates of the parent ObjectContainer3D.
public function get y():Number
public function set y(value:Number):void
| z | property |
z:Number [read-write]
Defines the z coordinate of the 3d object relative to the local coordinates of the parent ObjectContainer3D.
public function get z():Number
public function set z(value:Number):void
| addOnDimensionsChange | () | method |
public function addOnDimensionsChange(listener:Function):void
Default method for adding a dimensionschanged event listener
Parameterslistener:Function — The listener function
|
| addOnMouseDown | () | method |
public function addOnMouseDown(listener:Function):void
Default method for adding a mouseDown3D event listener
Parameterslistener:Function — The listener function
|
| addOnMouseMove | () | method |
public function addOnMouseMove(listener:Function):void
Default method for adding a mouseMove3D event listener
Parameterslistener:Function — The listener function
|
| addOnMouseOut | () | method |
public function addOnMouseOut(listener:Function):void
Default method for adding a mouseOut3D event listener
Parameterslistener:Function — The listener function
|
| addOnMouseOver | () | method |
public function addOnMouseOver(listener:Function):void
Default method for adding a mouseOver3D event listener
Parameterslistener:Function — The listener function
|
| addOnMouseUp | () | method |
public function addOnMouseUp(listener:Function):void
Default method for adding a mouseUp3D event listener
Parameterslistener:Function — The listener function
|
| addOnRadiusChange | () | method |
public function addOnRadiusChange(listener:Function):void
Default method for adding a radiuschanged event listener
Parameterslistener:Function — The listener function
|
| addOnSceneChange | () | method |
public function addOnSceneChange(listener:Function):void
Default method for adding a scenechanged event listener
Parameterslistener:Function — The listener function
|
| addOnSceneTransformChange | () | method |
public function addOnSceneTransformChange(listener:Function):void
Default method for adding a scenetransformchanged event listener
Parameterslistener:Function — The listener function
|
| addOnTransformChange | () | method |
public function addOnTransformChange(listener:Function):void
Default method for adding a transformchanged event listener
Parameterslistener:Function — The listener function
|
| clone | () | method |
public function clone(object:* = null):*
Duplicates the 3d object's properties to another Object3D object
object:* (default = null) — [optional] The new object instance into which all properties are copied
|
* — The new object instance with duplicated properties applied
|
| distanceTo | () | method |
public function distanceTo(obj:Object3D):Number
Calulates the absolute distance between the local 3d object position and the position of the given 3d object
Parametersobj:Object3D — The 3d object to use for calulating the distance
|
Number — The scalar distance between objects
|
See also
| lookAt | () | method |
public function lookAt(target:Number3D, upAxis:Number3D = null):void
Rotates the 3d object around to face a point defined relative to the local coordinates of the parent ObjectContainer3D.
target:Number3D — The vector defining the point to be looked at
|
|
upAxis:Number3D (default = null) — An optional vector used to define the desired up orientation of the 3d object after rotation has occurred
|
| moveBackward | () | method |
public function moveBackward(distance:Number):void
Moves the 3d object backwards along it's local z axis
Parametersdistance:Number — The length of the movement
|
| moveDown | () | method |
public function moveDown(distance:Number):void
Moves the 3d object backwards along it's local y axis
Parametersdistance:Number — The length of the movement
|
| moveForward | () | method |
public function moveForward(distance:Number):void
Moves the 3d object forwards along it's local z axis
Parametersdistance:Number — The length of the movement
|
| moveLeft | () | method |
public function moveLeft(distance:Number):void
Moves the 3d object backwards along it's local x axis
Parametersdistance:Number — The length of the movement
|
| moveRight | () | method |
public function moveRight(distance:Number):void
Moves the 3d object forwards along it's local x axis
Parametersdistance:Number — The length of the movement
|
| moveTo | () | method |
public function moveTo(target:Number3D):void
Moves the 3d object directly to a point in space
Parameterstarget:Number3D — A vector defining the new position of the 3d object
|
| moveUp | () | method |
public function moveUp(distance:Number):void
Moves the 3d object forwards along it's local y axis
Parametersdistance:Number — The length of the movement
|
| pitch | () | method |
public function pitch(angle:Number):void
Rotates the 3d object around it's local x-axis
Parametersangle:Number — The amount of rotation in degrees
|
| primitives | () | method |
public function primitives(consumer:IPrimitiveConsumer, session:AbstractRenderSession):void
Called from the PrimitiveTraverser when passing DrawPrimitive objects to the primitive consumer object
consumer:IPrimitiveConsumer — The consumer instance
|
|
session:AbstractRenderSession — The render session of the 3d object
|
See also
| removeOnDimensionsChange | () | method |
public function removeOnDimensionsChange(listener:Function):void
Default method for removing a dimensionschanged event listener
Parameterslistener:Function — The listener function
|
| removeOnMouseDown | () | method |
public function removeOnMouseDown(listener:Function):void
Default method for removing a mouseDown3D event listener
Parameterslistener:Function — The listener function
|
| removeOnMouseMove | () | method |
public function removeOnMouseMove(listener:Function):void
Default method for removing a mouseMove3D event listener
Parameterslistener:Function — The listener function
|
| removeOnMouseOut | () | method |
public function removeOnMouseOut(listener:Function):void
Default method for removing a mouseOut3D event listener
Parameterslistener:Function — The listener function
|
| removeOnMouseOver | () | method |
public function removeOnMouseOver(listener:Function):void
Default method for removing a mouseOver3D event listener
Parameterslistener:Function — The listener function
|
| removeOnMouseUp | () | method |
public function removeOnMouseUp(listener:Function):void
Default method for removing a mouseUp3D event listener
Parameterslistener:Function — The listener function
|
| removeOnRadiusChange | () | method |
public function removeOnRadiusChange(listener:Function):void
Default method for removing a radiuschanged event listener
Parameterslistener:Function — The listener function
|
| removeOnSceneChange | () | method |
public function removeOnSceneChange(listener:Function):void
Default method for removing a scenechanged event listener
Parameterslistener:Function — The listener function
|
| removeOnSceneTransformChange | () | method |
public function removeOnSceneTransformChange(listener:Function):void
Default method for removing a scenetransformchanged event listener
Parameterslistener:Function — The listener function
|
| removeOnTransformChange | () | method |
public function removeOnTransformChange(listener:Function):void
Default method for removing a transformchanged event listener
Parameterslistener:Function — The listener function
|
| roll | () | method |
public function roll(angle:Number):void
Rotates the 3d object around it's local z-axis
Parametersangle:Number — The amount of rotation in degrees
|
| rotate | () | method |
public function rotate(axis:Number3D, angle:Number):void
Rotates the 3d object around an axis by a defined angle
Parametersaxis:Number3D — The vector defining the axis of rotation
|
|
angle:Number — The amount of rotation in degrees
|
| scale | () | method |
public function scale(scale:Number):void
Scales the contents of the 3d object.
Parametersscale:Number — The scaling value
|
| tick | () | method |
public function tick(time:int):void
Called by the TickTraverser.
Can be overridden to provide updates to the 3d object based on individual render calls from the renderer.
time:int — The absolute time at the start of the render cycle
|
See also
| toString | () | method |
public override function toString():String
Used to trace the values of a 3d object.
ReturnsString — A string representation of the 3d object.
|
| translate | () | method |
public function translate(axis:Number3D, distance:Number):void
Moves the 3d object along a vector by a defined length
Parametersaxis:Number3D — The vector defining the axis of movement
|
|
distance:Number — The length of the movement
|
| traverse | () | method |
public function traverse(traverser:Traverser):void
Used when traversing the scenegraph
Parameterstraverser:Traverser — The traverser object
|
See also
| yaw | () | method |
public function yaw(angle:Number):void
Rotates the 3d object around it's local y-axis
Parametersangle:Number — The amount of rotation in degrees
|
| dimensionschanged | event |
away3d.events.Object3DEvent
Dispatched when the bounding dimensions of the 3d object changes.
See also
| mouseDown3D | event |
away3d.events.MouseEvent3D
Dispatched when a user presses the let hand mouse button while the cursor is over the 3d object.
| mouseMove3D | event |
away3d.events.MouseEvent3D
Dispatched when a user moves the cursor while it is over the 3d object.
| mouseOut3D | event |
away3d.events.MouseEvent3D
Dispatched when a user moves the cursor away from the 3d object.
| mouseOver3D | event |
away3d.events.MouseEvent3D
Dispatched when a user moves the cursor over the 3d object.
| mouseUp3D | event |
away3d.events.MouseEvent3D
Dispatched when a user releases the let hand mouse button while the cursor is over the 3d object.
| radiuschanged | event |
away3d.events.Object3DEvent
Dispatched when the bounding radius of the 3d object changes.
See also
| scenechanged | event |
away3d.events.Object3DEvent
Dispatched when the parent scene of the 3d object changes
See also
| scenetransformchanged | event |
away3d.events.Object3DEvent
Dispatched when the scene transform matrix of the 3d object changes.
See also
| transformchanged | event |
away3d.events.Object3DEvent
Dispatched when the local transform matrix of the 3d object changes.
See also
Front and back materials based on V2.0
var frontMaterial:BitmapMaterial = new
BitmapMaterial(Cast.bitmap("front.jpg");
var backMaterial:BitmapMaterial = new
BitmapMaterial(Cast.bitmap("back.jpg");
var plane:Plane = new Plane({width:200, height:200, material:frontMaterial,
back:backMaterial, bothsides:true});
make sure bothsides is set to trueSimple Camera/Object Mouse Movement in 3D based on V1.9.2
//IN A FUNCTION/LOOP://</br></br> myObjectA.moveTo(myObjectB.position); //Set the initial position</br> myObjectA.rotationX=mouseX;//set to mouseX rotation</br> myObjectA.rotationY=mouseY;//set to mouseY rotation</br> myObjectA.moveBackwards(1000);//RADIUS or ORBIT</br></br> //myObjectA.lookAt(myObjectC.position);//OPTIONAL lookAt some other object</br></br> //Pete(flashnine)
Source Files : http://away3d.com
Change the moveBackwards(Radius/Orbit). Also try something like mouseX/9 or mouseX*9 ETC
moveTo(): Move an Object to another Position based on V1.9.2
myObjectA.moveTo(myObjectB.position);//A moves to B
Look at another object on a single Axis based on V1.9.2
function lookY(who,enemy,myoffset):void {
who.rotationY=Math.floor(Math.atan2(who.x - enemy.x,who.z - enemy.z) * 180 / Math.PI) + myoffset;
}
//who will look at enemy, only rotating Y axis, myoffset is the number of degrees to offset itAway3D ownCanvas, Glow+Blur Filters, and BlendMode based on V1.9.2
var filterA:Array=new Array; filterA.push(new GlowFilter(0xFFFFFF, 1, 19, 19, 1, 1, false, false)); var blur:BlurFilter = new BlurFilter(); blur.blurX = 10; blur.blurY = 10; blur.quality = BitmapFilterQuality.LOW; filterA.push(blur); myObjectA.ownCanvas=true; myObjectA.filters = filterA; myObjectA.blendMode = BlendMode.MULTIPLY;
How to set values for scaleX, scaleY, scaleZ based on V1.9.2
objA.scaleX((100)/(objA.maxX-objA.minX)); objA.scaleY((100)/(objA.maxY-objA.minY)); objA.scaleZ((100)/(objA.maxZ-objA.minZ)); //sets an absolute scale of 100