|
boolean | isLockX () |
|
boolean | isLockY () |
|
boolean | isLockZ () |
|
void | setLockX (boolean value) |
|
void | setLockY (boolean value) |
|
void | setLockZ (boolean value) |
|
Vector3f | getForward () |
|
void | setForward (Vector3f value) |
|
void | preRender () |
|
| ARNode () |
|
| ARNode (String name) |
|
void | remove () |
|
void | removeAllChildren () |
|
void | addChild (ARNode child) |
|
ARNode | getParent () |
|
void | setParent (ARNode parent) |
|
List< ARNode > | getChildren () |
|
ARNode | getWorld () |
|
Vector3f | getPosition () |
|
void | setPosition (Vector3f position) |
|
void | setPosition (float x, float y, float z) |
|
void | translateBy (float x, float y, float z) |
|
void | scaleBy (float x, float y, float z) |
|
Vector3f | getScale () |
|
void | setScale (Vector3f scale) |
|
void | setScale (float x, float y, float z) |
|
void | scaleByUniform (float scale) |
|
Quaternion | getOrientation () |
|
void | setOrientation (Quaternion orientation) |
|
void | setOrientation (float x, float y, float z, float w) |
|
void | rotateByQuaternion (Quaternion quaternion) |
|
void | rotateByDegrees (float angle, float x, float y, float z) |
|
Matrix4f | getFullTransform () |
|
Vector3f | getFullScale () |
|
Quaternion | getFullOrientation () |
|
Matrix4f | getLocalTransform () |
|
Matrix4f | getWorldTransform () |
|
void | render () |
|
boolean | getVisible () |
|
void | setVisible (boolean visible) |
|
Quaternion | getWorldOrientation () |
|
Vector3f | getWorldScale () |
|
Vector3f | getWorldPosition () |
|
Vector3f | getFullPosition () |
|
String | getName () |
|
void | setName (String name) |
|
void | postRender () |
|
ARNode | findChildByName (String name) |
|
void | addChildren (List< ARNode > children) |
|
void | translateByVector (Vector3f translation) |
|
void | scaleByVector (Vector3f scale) |
|
void | rotateByRadians (float angle, float x, float y, float z) |
|
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.
Vector3f ARBillboardNode.getForward |
( |
| ) |
|
Sets 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. This vector must be set in order for an ARBillboardNode to work.
Example of use:
billboardNode.setForward(new Vector3f(0, 1, 0));
- Returns
- The vector which should be aimed at the camera. (0, -1, 0) would cause the negative y-axis to point towards the camera.