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
- import static
Methods
import
(
Object
static
-
objFileContent
-
[scene=engine.activeScene]
-
[rotate90x]
Parameters:
-
objFileContent
String -
[scene=engine.activeScene]
kick.scene.Scene optionalOptional. If not specified the active scene (from the engine) is used
-
[rotate90x]
Boolean optionalrotate -90 degrees around x axis
Returns:
Object:
returns container object with the properties (mesh:[], gameObjects:[], materials:[])