Constructor for the TransformWidget class
The length of each line in the axes, default = 1
The width of each selected axis line
The maximum distance from the axis line that can trigger selection
Protected_Bounding box in this transform's local coordinate space
Protected_Bounding circle in this transform's local coordinate space
Protected_The position of this node as a Vector3.
Protected_The rotation of this transform represented as a quaternion.
Protected_The scale of this node as a Vector3.
Protected_Bounding box in the world coordinate space
Protected_Bounding box in the world coordinate space
The bounding box in vertex coordinate space
The bounding sphere in vertex coordinate space
ProtectedlocalProtectedlocalProtectedlocalProtectedlocalThe local transformation matrix of this node.
The world transformation matrix of this node.
The parent transform of this transform. Null if this transform has no parent.
Whether this transform is currently visible in the scene.
ProtectedworldDraws this transform and all its children in the scene graph.
The parent transform of this transform.
The camera used to view the scene.
The light manager used to manage the lights in the scene.
Checks for intersection between this Node3 and another
The other Node3 object
The IntersectionMode3 to use for the comparison (default: BOUNDING_SPHERE)
The CoordinateSpace3 to use for the comparison (default: LOCAL_SPACE)
Whether or not the two objects intersect
Checks if the TransformWidget is currently selected
True if the TransformWidget is selected, false otherwise
Rotates this Node3 object to look at the given target with the given up vector
The Vector3 representing the target in world space
The Vector3 representing the up direction (defaults to Vector3.UP)
Handles a mouse down event, checking for intersection with the thickAxes and setting currentAxis if one is found
The MouseEvent
Handles a mouse move event, updating the deviceCoords
The MouseEvent
Handles a mouse up event, resetting the currentAxis
The MouseEvent
Removes the current Node3 from its parent Node3
true if the Node3 was successfully removed, false otherwise
Sets lights on the children of the Node3
The LightManager object
Traverses the scene graph starting from this Node3 object and updates the world matrices of all Node3 objects in the graph.
Updates the TransformWidget based on the deltaTime value
The amount of time that has passed since the last update
Updates the world matrix of this Node3 by computing the multiplication of its local matrix with its parent's world matrix (if it has a parent).
void
This is the base class for all objects that can be added to a GopherGfx 3D scene. It is named "Node" because the scene is stored in a graph data structure, so we think of every element in that graph as a "node" in the graph. There is also a "Node2" base class for all objects that can be added to the 2D scene.
Every object that can be added to a 3D scene (e.g., Lights, Mesh3s) will inherit from this base object. So, every object in the scene will have a position, rotation, scale, boundingBox, boundingSphere, visibility, and all of the other properties listed in this class.
For more detail on how the scene graph works, see the documentation for the Scene class.