KudanAR - iOS
ARBillboardNode Class Reference

#import <ARBillboardNode.h>

+ Inheritance diagram for ARBillboardNode:
+ Collaboration diagram for ARBillboardNode:

Properties

ARVector3forward
 
BOOL lockX
 
BOOL lockY
 
BOOL lockZ
 
- Properties inherited from ARNode
NSString * name
 
ARNodeparent
 
NSArray< ARNode * > * children
 
NSArray * descendants
 
ARVector3position
 
ARVector3scale
 
ARQuaternionorientation
 
ARMatrix4localTransform
 
ARMatrix4worldTransform
 
ARMatrix4fullTransform
 
ARQuaternionfullOrientation
 
ARQuaternionworldOrientation
 
ARVector3worldScale
 
ARVector3worldPosition
 
ARVector3fullPosition
 
ARNodeworld
 
NSUInteger childCount
 
BOOL visible
 

Additional Inherited Members

- Instance Methods inherited from ARNode
(void) - addChild:
 
(void) - addChildren:
 
(void) - removeChild:
 
(void) - removeAllChildren
 
(void) - remove
 
(ARNode *) - findChildWithName:
 
(void) - markWorldTransformAsDirty
 
(void) - translateByX:y:z:
 
(void) - translateByX:y:z:transformSpace:
 
(void) - translateByVector:
 
(void) - translateByVector:transformSpace:
 
(void) - scaleByUniform:
 
(void) - scaleByX:y:z:
 
(void) - scaleByVector:
 
(void) - rotateByDegrees:axisX:y:z:
 
(void) - rotateByRadians:axisX:y:z:
 
(void) - rotateByQuaternion:
 
(ARVector3 *) - positionToWorld:
 
(ARVector3 *) - positionToEye:
 
(ARQuaternion *) - orientationToWorld:
 
(ARQuaternion *) - orientationToEye:
 
(CGPoint) - viewPortFromNodePosition:
 
(void) - render
 
(void) - preRender
 
(void) - postRender
 
(void) - addTouchTarget:withAction:
 
(void) - didReceiveTouch
 
(ARVector3 *) - nodeFromViewPort:
 
- Class Methods inherited from ARNode
(instancetype) + nodeWithName:
 
- Protected Member Functions inherited from ARNode
(typedef) - NS_ENUM
 

Detailed Description

An ARBillboardNode is a subclass of ARNode that changes its orientation to ensure it always maintains its given forward vector direction relative to the camera. This is useful for showing content that rotates and follows the device as it moves around the scene and is especially useful for videos or other 2D content, as it will always be visible and extreme viewing angles aren't an issue.

Property Documentation

- (ARVector3*) forward
readwritenonatomicassign

The vector that should be aimed at the camera. For example, a vector of (0, 1, 0) would cause the Y-axis of the node's local space to point towards the camera.

- (BOOL) lockX
readwritenonatomicassign

Determines whether rotation around the X axis is locked. Default is NO.

- (BOOL) lockY
readwritenonatomicassign

Determines whether rotation around the Y axis is locked. Default is NO.

- (BOOL) lockZ
readwritenonatomicassign

Determines whether rotation around the Z axis is locked. Default is NO.


The documentation for this class was generated from the following file: