Package | away3d.core.partition |
Class | public class EntityNode |
Inheritance | EntityNode NodeBase Object |
Subclasses | CameraNode, DirectionalLightNode, LightNode, LightProbeNode, MeshNode, PointLightNode, RenderableNode, SkyBoxNode |
See also
Property | Defined By | ||
---|---|---|---|
entity : Entity [read-only]
The entity contained in this leaf node. | EntityNode | ||
parent : NodeBase [read-only]
The parent node. | NodeBase | ||
showDebugBounds : Boolean | NodeBase |
Method | Defined By | ||
---|---|---|---|
EntityNode(entity:Entity)
Creates a new EntityNode object. | EntityNode | ||
acceptTraverser(traverser:PartitionTraverser):void [override]
Allows the traverser to visit the current node. | EntityNode | ||
Finds the partition that contains (or should contain) the given entity. | NodeBase | ||
isInFrustum(planes:Vector.<Plane3D>, numPlanes:int):Boolean [override] | EntityNode | ||
isIntersectingRay(rayPosition:Vector3D, rayDirection:Vector3D):Boolean [override]
Tests if the current node is intersecting with a ray. | EntityNode | ||
removeFromParent():void
Detaches the node from its parent. | EntityNode |
entity | property |
entity:Entity
[read-only] The entity contained in this leaf node.
public function get entity():Entity
EntityNode | () | Constructor |
public function EntityNode(entity:Entity)
Creates a new EntityNode object.
Parametersentity:Entity — The Entity to be contained in this leaf node.
|
acceptTraverser | () | method |
override public function acceptTraverser(traverser:PartitionTraverser):void
Allows the traverser to visit the current node. If the traverser's enterNode method returns true, the traverser will be sent down the child nodes of the tree. This method should be overridden if the order of traversal is important (such as for BSP trees) - or if static child nodes are not added using addNode, but are linked to separately.
Parameters
traverser:PartitionTraverser — The traverser visiting the node.
|
isInFrustum | () | method |
override public function isInFrustum(planes:Vector.<Plane3D>, numPlanes:int):Boolean
Parameters
planes:Vector.<Plane3D> | |
numPlanes:int |
Boolean |
isIntersectingRay | () | method |
override public function isIntersectingRay(rayPosition:Vector3D, rayDirection:Vector3D):Boolean
Tests if the current node is intersecting with a ray.
Parameters
rayPosition:Vector3D — The starting position of the ray
| |
rayDirection:Vector3D — The direction vector of the ray
|
Boolean — Whether or not the node is at least partly intersecting the ray.
|
removeFromParent | () | method |
public function removeFromParent():void
Detaches the node from its parent.