Package | alternativa.engine3d.objects |
Class | public class SkyBox |
Inheritance | SkyBox ![]() ![]() ![]() |
farClipping
distance and it is difference with Box
.
See also
Method | Defined By | ||
---|---|---|---|
SkyBox(size:Number, left:Material = null, right:Material = null, back:Material = null, front:Material = null, bottom:Material = null, top:Material = null, uvPadding:Number = 0)
Creates a new SkyBox instance. | SkyBox | ||
![]() |
Adds given Object3D instance as a child to the end of this Object3D's children list. | Object3D | |
![]() |
Adds a child Object3D instance to this Object3D instance. | Object3D | |
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object
so that the listener receives notification of an event. | Object3D | |
![]() |
Adds Surface to Mesh object. | Mesh | |
![]() | calculateBoundBox():void
Calculates object's bounds in its own coordinates
| Object3D | |
![]() | clearExcludedLights(updateChildren:Boolean = false):void
Resets list of lights excluded from lighting this object. | Object3D | |
[override]
Returns a copy of object. | SkyBox | ||
![]() |
Check if given object is child of this Object3D. | Object3D | |
![]() | dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow. | Object3D | |
![]() | excludeLight(light:Light3D, updateChildren:Boolean = false):void
Disables lighting of the object by given light. | Object3D | |
![]() | getChildAt(index:int):Object3D
Returns the child Object3D instance that exists at the specified index. | Object3D | |
![]() | getChildByName(name:String):Object3D
Returns child Object3D instance with given name. | Object3D | |
![]() | getChildIndex(child:Object3D):int
Returns index of given child Object3D instance. | Object3D | |
![]() | getResources(hierarchy:Boolean = false, resourceType:Class = null):Vector.<Resource>
Gather the resources of this Object3D. | Object3D | |
Returns a Surface by given alias. | SkyBox | ||
![]() | getSurface(index:int):Surface
Returns surface by index. | Mesh | |
![]() | globalToLocal(point:Vector3D):Vector3D
Converts the Vector3D object from the root Object3D (global) coordinates to the local Object3D's own coordinates. | Object3D | |
![]() | hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event. | Object3D | |
![]() | intersectRay(origin:Vector3D, direction:Vector3D):RayIntersectionData [override]
Searches for the intersection of an Object3D and given ray, defined by origin and direction. | Mesh | |
![]() | localToGlobal(point:Vector3D):Vector3D
Converts the Vector3D object from the Object3D's own (local) coordinates to the root Object3D (global) coordinates. | Object3D | |
![]() |
Removes the specified child Object3D instance from the child list of the
this Object3D instance. | Object3D | |
![]() | removeChildAt(index:int):Object3D
Removes a child Object3D from the specified index position in the child list of
the Object3D. | Object3D | |
![]() | removeChildren(beginIndex:int = 0, endIndex:int = 2147483647):void
Removes child objects in given range of indexes. | Object3D | |
![]() | removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object. | Object3D | |
![]() | setChildIndex(child:Object3D, index:int):void
Sets index for child Object3D instance. | Object3D | |
![]() | setMaterialToAllSurfaces(material:Material):void
Assign given material to all surfaces. | Mesh | |
![]() |
Swaps index positions of two specified child objects. | Object3D | |
![]() | swapChildrenAt(index1:int, index2:int):void
Swaps index positions of two child objects by its index. | Object3D | |
![]() | toString():String
Returns the string representation of the specified object. | Object3D | |
![]() | willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type. | Object3D |
Method | Defined By | ||
---|---|---|---|
clonePropertiesFrom(source:Object3D):void [override]
Copies basic properties of Object3D. | SkyBox |
Constant | Defined By | ||
---|---|---|---|
BACK : String = back [static]
Back side. | SkyBox | ||
BOTTOM : String = bottom [static]
Bottom side. | SkyBox | ||
FRONT : String = front [static]
Front side. | SkyBox | ||
LEFT : String = left [static]
Left side. | SkyBox | ||
RIGHT : String = right [static]
Right side. | SkyBox | ||
TOP : String = top [static]
Top side.. | SkyBox |
SkyBox | () | Constructor |
public function SkyBox(size:Number, left:Material = null, right:Material = null, back:Material = null, front:Material = null, bottom:Material = null, top:Material = null, uvPadding:Number = 0)
Creates a new SkyBox instance.
Parameterssize:Number — Length of each edge.
| |
left:Material (default = null ) — Material of the left side.
| |
right:Material (default = null ) — Material of the right side.
| |
back:Material (default = null ) — Material of the back side.
| |
front:Material (default = null ) — Material of the front side.
| |
bottom:Material (default = null ) — Material of the bottom side.
| |
top:Material (default = null ) — Material of the top side.
| |
uvPadding:Number (default = 0 ) — Texture padding in UV space.
|
See also
clone | () | method |
override public function clone():Object3D
Returns a copy of object.
ReturnsObject3D — A copy of this Object3D .
|
clonePropertiesFrom | () | method |
override protected function clonePropertiesFrom(source:Object3D):void
Copies basic properties of Object3D
. This method calls from clone()
method.
Parameters
source:Object3D — Object3D , properties of which will be copied.
|
getSide | () | method |
public function getSide(side:String):Surface
Returns a Surface
by given alias. You can use SkyBox
class constants as value of side
parameter. They are following: SkyBox.LEFT
, SkyBox.RIGHT
, SkyBox.BACK
, SkyBox.FRONT
, SkyBox.BOTTOM
, SkyBox.TOP
.
Parameters
side:String — Surface alias.
|
Surface — Surface by given alias.
|
BACK | Constant |
public static const BACK:String = back
Back side.
BOTTOM | Constant |
public static const BOTTOM:String = bottom
Bottom side.
FRONT | Constant |
public static const FRONT:String = front
Front side.
LEFT | Constant |
public static const LEFT:String = left
Left side.
RIGHT | Constant |
public static const RIGHT:String = right
Right side.
TOP | Constant |
public static const TOP:String = top
Top side..