Environment - isir/greta GitHub Wiki
Environment
The Environment module is used to add characters and objects into a scene. This module creates a tree of the scene, where characters and objects are leaves. Each leaf contains 3 nodes for direction, rotation and scale. Because this tree is compatible with computer graphics standards, this environment can be used in different graphic engines like Ogre3D or Unity3D.
TreeNode :
/**
* @param XYZ for the direction, scale, rotation
*/
public TreeNode(float x, float y, float z,
float ox, float oy, float oz, float ow,
float sx, float sy, float sz
) {
this.children = new ArrayList<Node>();
position = new Vec3f(x, y, z);
orientation = new Quaternion(ox, oy, oz, ow);
scale = new Vec3f(sx, sy , sz);
}
Class diagram
Class diagram