Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public static final class GltfScene.Node
- Object
- GltfScene.Node
One node of the scene graph.
Methods
public String getName() | The node’s name, or an empty string. |
public int getParent() | The parent node’s index, or -1 for a root. |
public int[] getChildren() | The child node indices. |
public float[] getTranslation() | The rest translation x, y, z. |
public float[] getRotation() | The rest rotation as an x, y, z, w quaternion. |
public float[] getScale() | The rest scale x, y, z. |
public int getSkin() | The index of the skin that deforms this node’s mesh, or -1. |
Inherited methods
Method details
getName
public String getName()The node’s name, or an empty string.
getParent
public int getParent()The parent node’s index, or -1 for a root.
getChildren
public int[] getChildren()The child node indices.
getTranslation
public float[] getTranslation()The rest translation
x, y, z.getRotation
public float[] getRotation()The rest rotation as an
x, y, z, w quaternion.getScale
public float[] getScale()The rest scale
x, y, z.getSkin
public int getSkin()The index of the skin that deforms this node’s mesh, or -1.