Package | away3dlite.sprites |
Class | public class Sprite3D |
Inheritance | Sprite3D Object |
Property | Defined By | ||
---|---|---|---|
alignmentType : String
Defines the way the sprite aligns its plane to face the viewer. | Sprite3D | ||
height : Number
Defines the height of the Sprite3D object. | Sprite3D | ||
material : Material
Determines the material used on the sprite. | Sprite3D | ||
position : Vector3D [read-only]
Returns a 3d vector representing the local position of the 3d sprite. | Sprite3D | ||
scale : Number
Defines the overall scale of the Sprite3D object. | Sprite3D | ||
vertices : Vector.<Number> [read-only]
| Sprite3D | ||
width : Number
Defines the width of the Sprite3D object. | Sprite3D | ||
x : Number = 0
Defines the x position of the Sprite3D object. | Sprite3D | ||
y : Number = 0
Defines the y position of the Sprite3D object. | Sprite3D | ||
z : Number = 0
Defines the z position of the Sprite3D object. | Sprite3D |
Method | Defined By | ||
---|---|---|---|
Creates a new Sprite3D object. | Sprite3D | ||
Duplicates the sprite3d properties to another Sprite3D object. | Sprite3D |
Method | Defined By | ||
---|---|---|---|
updateVertices():void | Sprite3D |
alignmentType | property |
public var alignmentType:String
Defines the way the sprite aligns its plane to face the viewer. Allowed values are "viewplane" or "viewpoint". Defaults to "viewplane".
See also
height | property |
height:Number
Defines the height of the Sprite3D object. Defaults to the material height if BitmapMaterial, otherwise 100.
public function get height():Number
public function set height(value:Number):void
material | property |
material:Material
Determines the material used on the sprite.
public function get material():Material
public function set material(value:Material):void
position | property |
position:Vector3D
[read-only] Returns a 3d vector representing the local position of the 3d sprite.
public function get position():Vector3D
scale | property |
scale:Number
Defines the overall scale of the Sprite3D object. Defaults to 1.
public function get scale():Number
public function set scale(value:Number):void
vertices | property |
vertices:Vector.<Number>
[read-only]
public function get vertices():Vector.<Number>
width | property |
width:Number
Defines the width of the Sprite3D object. Defaults to the material width if BitmapMaterial, otherwise 100.
public function get width():Number
public function set width(value:Number):void
x | property |
public var x:Number = 0
Defines the x position of the Sprite3D object. Defaults to 0.
y | property |
public var y:Number = 0
Defines the y position of the Sprite3D object. Defaults to 0.
z | property |
public var z:Number = 0
Defines the z position of the Sprite3D object. Defaults to 0.
Sprite3D | () | Constructor |
public function Sprite3D(material:Material = null, scale:Number = 1)
Creates a new Sprite3D
object.
material:Material (default = null ) — Determines the material used on the faces in the Sprite3D object.
| |
scale:Number (default = 1 )
|
clone | () | method |
public function clone(object:Sprite3D = null):Sprite3D
Duplicates the sprite3d properties to another Sprite3D
object.
Parameters
object:Sprite3D (default = null ) — [optional] The new object instance into which all properties are copied. The default is Sprite3D .
|
Sprite3D — The new object instance with duplicated properties applied.
|
updateVertices | () | method |
protected function updateVertices():void