API Docs for: 0.5.5
Show:

kick.importer.ObjImporter Class

Imports a Wavefront .obj mesh into a scene. The importer loading both normals and texture coordinates from the model if available. Note that each import can contains multiple models and each model may have multiple sub-meshes.

Item Index

Methods

Methods

import

(
  • objFileContent
  • [scene=engine.activeScene]
  • [rotate90x]
)
Object static

Parameters:

  • objFileContent String
  • [scene=engine.activeScene] kick.scene.Scene optional

    Optional. If not specified the active scene (from the engine) is used

  • [rotate90x] Boolean optional

    rotate -90 degrees around x axis

Returns:

Object:

returns container object with the properties (mesh:[], gameObjects:[], materials:[])