Package | away3d.sprites |
Class | public class Sprite3D |
Inheritance | Sprite3D Element flash.events.EventDispatcher |
See also
Property | Defined by | ||
---|---|---|---|
commands : Array [read-only]
Returns an array of drawing command strings that are used by the 3d sprite.
| 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 | ||
maxX : Number [read-only]
Returns the maximum x value of the segment
| Sprite3D | ||
maxY : Number [read-only]
Returns the maximum y value of the segment
| Sprite3D | ||
maxZ : Number [read-only]
Returns the maximum z value of the segment
| Sprite3D | ||
minX : Number [read-only]
Returns the minimum x value of the face
| Sprite3D | ||
minY : Number [read-only]
Returns the minimum y value of the face
| Sprite3D | ||
minZ : Number [read-only]
Returns the minimum y value of the face
| Sprite3D | ||
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 | ||
radius2 : Number [read-only]
Returns the squared bounding radius of the 3d sprite.
| Sprite3D | ||
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 | ||
vertex : Vertex
[read-only]
Returns the vertex of the 3d sprite.
| Sprite3D | ||
vertexDirty : Boolean | Element | ||
vertices : Array [read-only]
Returns an array of vertex objects that are used by the 3d sprite.
| Sprite3D | ||
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 | ||
---|---|---|---|
Sprite3D
(material:Material = null, width:Number = 10, height:Number = 10, rotation:Number = 0, scaling:Number = 1)
Creates a new
Billboard object. | Sprite3D | ||
addOnMappingChange(listener:Function):void
Default method for adding a mappingchanged event listener
| Element | ||
addOnVertexChange(listener:Function):void
Default method for adding a vertexchanged event listener
| Element | ||
addOnVertexValueChange(listener:Function):void
Default method for adding a vertexvaluechanged event listener
| Element | ||
addOnVisibleChange(listener:Function):void
Default method for adding a visiblechanged event listener
| Element | ||
offset(x:Number, y:Number, z:Number):void
Offsets the vertices of the face by given amounts in x, y and z.
| Element | ||
removeOnMappingChange(listener:Function):void
Default method for removing a mappingchanged event listener
| Element | ||
removeOnVertexChange(listener:Function):void
Default method for removing a vertexchanged event listener
| Element | ||
removeOnVertexValueChange(listener:Function):void
Default method for removing a vertexvaluechanged event listener
| Element | ||
removeOnVisibleChange(listener:Function):void
Default method for removing a visiblechanged event listener
| Element |
Event | Summary | Defined by | ||
---|---|---|---|---|
Dispatched when the material of the sprite3d changes. | Sprite3D | |||
Dispatched when the vertex of a 3d element changes. | Element | |||
Dispatched when the vertex value of a 3d element changes. | Element | |||
Dispatched when the visiblity of a 3d element changes. | Element |
commands | property |
commands:Array
[read-only]Returns an array of drawing command strings that are used by the 3d sprite.
Implementation public function get commands():Array
height | property |
height:Number
[read-write]Defines the height of the 3d sprite.
Implementation public function get height():Number
public function set height(value:Number):void
material | property |
material:Material
[read-write]Defines the material of the 3d sprite.
Implementation public function get material():Material
public function set material(value:Material):void
maxX | property |
maxX:Number
[read-only]Returns the maximum x value of the segment
Implementation public function get maxX():Number
See also
maxY | property |
maxY:Number
[read-only]Returns the maximum y value of the segment
Implementation public function get maxY():Number
See also
maxZ | property |
maxZ:Number
[read-only]Returns the maximum z value of the segment
Implementation public function get maxZ():Number
See also
minX | property |
minX:Number
[read-only]Returns the minimum x value of the face
Implementation public function get minX():Number
See also
minY | property |
minY:Number
[read-only]Returns the minimum y value of the face
Implementation public function get minY():Number
See also
minZ | property |
minZ:Number
[read-only]Returns the minimum y value of the face
Implementation public function get minZ():Number
See also
radius2 | property |
radius2:Number
[read-only]Returns the squared bounding radius of the 3d sprite.
Implementation public function get radius2():Number
rotation | property |
rotation:Number
[read-write]Defines the rotation of the 3d sprite.
Implementation public function get rotation():Number
public function set rotation(value:Number):void
scaling | property |
scaling:Number
[read-write]
Defines the scaling of the 3d sprite when an BitmapMaterial
is used.
public function get scaling():Number
public function set scaling(value:Number):void
spriteVO | property |
public var spriteVO:SpriteVO
vertex | property |
vertex:Vertex
[read-only]Returns the vertex of the 3d sprite.
Implementation public function get vertex():Vertex
vertices | property |
vertices:Array
[read-only]Returns an array of vertex objects that are used by the 3d sprite.
Implementation public function get vertices():Array
width | property |
width:Number
[read-write]Defines the width of the 3d sprite.
Implementation public function get width():Number
public function set width(value:Number):void
x | property |
x:Number
[read-write]
Defines the x coordinate of the 3d sprite relative to the local coordinates of the parent Mesh
.
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 sprite relative to the local coordinates of the parent Mesh
.
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 sprite relative to the local coordinates of the parent Mesh
.
public function get z():Number
public function set z(value:Number):void
Sprite3D | () | constructor |
public function Sprite3D(material:Material = null, width:Number = 10, height:Number = 10, rotation:Number = 0, scaling:Number = 1)
Parameters
material:Material (default = null ) — The vertex object of the 3d sprite
|
|
width:Number (default = 10 ) — [optional] The material used by the 3d sprite to render
|
|
height:Number (default = 10 )
|
|
rotation:Number (default = 0 )
|
|
scaling:Number (default = 1 )
|
materialchanged | event |
away3d.events.BillboardEvent
Dispatched when the material of the sprite3d changes.