Bounding box in this transform's local coordinate space
Bounding circle in this transform's local coordinate space
Protected
_positionVector2 representing the position
Protected
_rotationRotation of the transform in radians
Protected
_scaleVector2 representing the scale
Protected
_shearBounding box in the world coordinate space
Bounding box in the world coordinate space
Bounding box in vertex coordinate space
Bounding circle in vertex coordinate space
Array of children for this transform
Integer representing the layer of this transform
Protected
localProtected
localProtected
localMatrix3 representing the transformation matrix in local space
Matrix3 representing the transformation matrix in world space
Parent transform for this transform
Boolean indicating whether this transform should be rendered
Protected
worldChecks if this Node2 intersects another Node2, using either a BoundingCircle or AxisAlignedBoundingBox
A boolean indicating whether the two objects intersect
The Node2 to check for intersection with
The IntersectionMode2 to use for the comparison (default: BOUNDING_CIRCLE)
The CoordinateSpace2 to use for the comparison (default: LOCAL_SPACE)
Looks at a target vector with the given look vector
The vector to look at
The vector used to determine the look direction (defaults to Vector2.UP)
Generated using TypeDoc
This is the base class for all objects that can be added to a GopherGfx 2D 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 "Node3" base class for all objects that can be added to the 3D scene.
Every object that can be added to a 2D scene (e.g., Mesh2s, Line2s) 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.