Namespace: World

World

This namespace is used to group together all scene graph node types.

Overview

Obj - The base of every node.

Basic drawing:

  • Sprite - For drawing a single image
  • ASprite - For drawing animated sprites (multiple images)
  • Text - For drawing bitmap rendered text
  • Model - For drawing more complex mesh then a plane ;)
  • Camera - Not directly for drawing, but viewing from a different angle

Advanced drawing:

  • SpriteBatch - For drawing multiple Tiles with the same Texture but different Transforms. Useful for rendering tilemaps or sprite particles.
  • Viewport - Draws all children to a Texture (RenderTarget) with can than be used for drawing. Important for split screen rendering, post processing, drawing reflections, and tons of other things.

Physics 2D: (only 2D physics is supported by now)

  • Body - Specifies physical properties. Handles movement and velocity
  • Collider - For representing the solid surface of a Body (consists of Shapes)
  • Shape - Not a node type! Specifies the bounds of objects

Classes

Obj
Sprite