Advanced Features
Matali Physics Pro is multi-threaded, multi-platform, fully featured solution providing additional comprehensive support for the following areas:

Serialization

Serialization

The engine enables:






  • Serialization of entire physics scene.
    • PhysicsScene class provides functions to:
      • Write physics scene to a file or stream
      • Read physics scene from a file or stream
    • Physics scene can be saved in real time, creating a snapshot. Then such snapshot can be loaded and further processed by the engine (from the point the snapshot was taken).
    • All information describing a physics scene elements are serialized to easily parsable XML files.
    • Serialized physics scene elements:
      • Physics objects
      • Constraints
      • Contact points
      • Shapes
      • Meshes
      • Materials
      • Lights
      • Cameras
      • Internal controllers
  • Serialization of user-defined controllers through the programmable Archive class.
    • Archive class provides functions to:
      • Open a file or stream
      • Save data to a file or stream (supported data types: bool, byte, DateTime, decimal, double, float, int, long, string, object, Matrix, Quaternion, Vector2, Vector3, Vector4)
      • Read data from a file or stream (supported data types: bool, byte, DateTime, decimal, double, float, int, long, string, object, Matrix, Quaternion, Vector2, Vector3, Vector4)
      • Close a file or stream
    • All information describing a user-defined controllers are serialized to easily parsable XML files.
Advanced meshes

Advanced meshes

The engine enables:






  • Creating static triangle meshes for procedural surfaces.
    • Meshes can be created for:
      • Bezier surfaces
      • NURBS surfaces
    • Meshes are built by managers: the regions, vertices and triangles.
    • Meshes can be read as arrays of indexed or non-indexed polygons.