Package | away3d.sprites |
Class | public class DirectionalSprite |
Inheritance | DirectionalSprite Sprite3D Element |
Property | Defined by | ||
---|---|---|---|
align : String
Defines how the 3d sprite is aligned to its vertex
| Sprite3D | ||
commands : Vector
Returns an array of drawing command strings that make up the 3d element.
| Element | ||
distanceScaling : Boolean
Defines if the sprite should scale with distance.
| Sprite3D | ||
extra : Object
An optional untyped object that can contain used-defined properties.
| Element | ||
height : Number
Defines the height of the 3d sprite.
| Sprite3D | ||
material : Material
Defines the material of the 3d sprite.
| Sprite3D | ||
materials : Vector [read-only]
Returns an array of directional materials.
| DirectionalSprite | ||
parent : Geometry
Defines the parent 3d object of the segment.
| Element | ||
pathCommands : Array
Returns an array of drawing command objects that are used by the face.
| Element | ||
rotation : Number
Defines the rotation of the 3d sprite.
| Sprite3D | ||
scaling : Number
Defines the scaling of the 3d sprite when an
BitmapMaterial is used. | Sprite3D | ||
spriteVO : SpriteVO | Sprite3D | ||
uvs : Vector
Returns an array of uv objects that are used by the element.
| Element | ||
vertices : Vector
Returns an array of vertex objects that make up the 3d element.
| Element | ||
visible : Boolean
Determines whether the 3d element is visible in the scene.
| Element | ||
width : Number
Defines the width of the 3d sprite.
| Sprite3D | ||
x : Number
Defines the x coordinate of the 3d sprite relative to the local coordinates of the parent
Mesh . | Sprite3D | ||
y : Number
Defines the y coordinate of the 3d sprite relative to the local coordinates of the parent
Mesh . | Sprite3D | ||
z : Number
Defines the z coordinate of the 3d sprite relative to the local coordinates of the parent
Mesh . | Sprite3D |
Method | Defined by | ||
---|---|---|---|
DirectionalSprite
(material:Material = null, width:Number = 10, height:Number = 10, rotation:Number = 0, align:String = "center", scaling:Number = 1, distanceScaling:Boolean = true)
Creates a new
DirectionalSprite object. | DirectionalSprite | ||
Adds a new material definition to the array of directional materials.
| DirectionalSprite |
materials | property |
materials:Vector
[read-only]Returns an array of directional materials.
Implementation public function get materials():Vector
DirectionalSprite | () | constructor |
public function DirectionalSprite(material:Material = null, width:Number = 10, height:Number = 10, rotation:Number = 0, align:String = "center", scaling:Number = 1, distanceScaling:Boolean = true)
Parameters
material:Material (default = null )
|
|
width:Number (default = 10 )
|
|
height:Number (default = 10 )
|
|
rotation:Number (default = 0 )
|
|
align:String (default = "center ")
|
|
scaling:Number (default = 1 )
|
|
distanceScaling:Boolean (default = true )
|
addDirectionalMaterial | () | method |
public function addDirectionalMaterial(vertex:Vertex, material:Material):void
Adds a new material definition to the array of directional materials.
Parametersvertex:Vertex — vertex The orienting vertex to be used by the directional material.
|
|
material:Material — bitmap The bitmapData object to be used as the directional material.
|