Modifier and Type | Method and Description |
---|---|
Model |
ModelLoader.loadModel(FileHandle fileHandle)
Directly load the model on the calling thread.
|
Model |
ModelLoader.loadModel(FileHandle fileHandle,
P parameters)
Directly load the model on the calling thread.
|
Model |
ModelLoader.loadModel(FileHandle fileHandle,
TextureProvider textureProvider)
Directly load the model on the calling thread.
|
Model |
ModelLoader.loadModel(FileHandle fileHandle,
TextureProvider textureProvider,
P parameters)
Directly load the model on the calling thread.
|
Model |
ModelLoader.loadSync(AssetManager manager,
String fileName,
FileHandle file,
P parameters) |
Modifier and Type | Field and Description |
---|---|
Model |
ModelInstance.model
the
Model this instances derives from |
Constructor and Description |
---|
ModelInstance(Model model)
Constructs a new ModelInstance with all nodes and materials of the given model.
|
ModelInstance(Model model,
Array<String> rootNodeIds)
Constructs a new ModelInstance with only the specified nodes and materials of the given model.
|
ModelInstance(Model model,
float x,
float y,
float z)
Constructs a new ModelInstance at the specified position.
|
ModelInstance(Model model,
Matrix4 transform)
Constructs a new ModelInstance with the specified transform.
|
ModelInstance(Model model,
Matrix4 transform,
Array<String> rootNodeIds)
Constructs a new ModelInstance with only the specified nodes and materials of the given model.
|
ModelInstance(Model model,
Matrix4 transform,
Array<String> rootNodeIds,
boolean shareKeyframes)
Constructs a new ModelInstance with only the specified nodes and materials of the given model.
|
ModelInstance(Model model,
Matrix4 transform,
String... rootNodeIds)
Constructs a new ModelInstance with only the specified nodes and materials of the given model.
|
ModelInstance(Model model,
Matrix4 transform,
String nodeId,
boolean mergeTransform) |
ModelInstance(Model model,
Matrix4 transform,
String nodeId,
boolean parentTransform,
boolean mergeTransform)
Recursively searches the mode for the specified node.
|
ModelInstance(Model model,
Matrix4 transform,
String nodeId,
boolean recursive,
boolean parentTransform,
boolean mergeTransform) |
ModelInstance(Model model,
Matrix4 transform,
String nodeId,
boolean recursive,
boolean parentTransform,
boolean mergeTransform,
boolean shareKeyframes) |
ModelInstance(Model model,
String... rootNodeIds)
Constructs a new ModelInstance with only the specified nodes and materials of the given model.
|
ModelInstance(Model model,
String nodeId,
boolean mergeTransform) |
ModelInstance(Model model,
String nodeId,
boolean parentTransform,
boolean mergeTransform)
Recursively searches the mode for the specified node.
|
ModelInstance(Model model,
String nodeId,
boolean recursive,
boolean parentTransform,
boolean mergeTransform) |
ModelInstance(Model model,
Vector3 position)
Constructs a new ModelInstance at the specified position.
|
Modifier and Type | Method and Description |
---|---|
Model |
ObjLoader.loadModel(FileHandle fileHandle,
boolean flipV)
Directly load the model on the calling thread.
|
Modifier and Type | Field and Description |
---|---|
Array<Model> |
ModelInfluencer.models |
Constructor and Description |
---|
ModelInfluencer(Model... models) |
Random(Model... models) |
Single(Model... models) |
Modifier and Type | Method and Description |
---|---|
void |
UnweightedMeshSpawnShapeValue.setMesh(Mesh mesh,
Model model) |
void |
MeshSpawnShapeValue.setMesh(Mesh mesh,
Model model) |
Modifier and Type | Method and Description |
---|---|
Model |
ModelBuilder.createArrow(float x1,
float y1,
float z1,
float x2,
float y2,
float z2,
float capLength,
float stemThickness,
int divisions,
int primitiveType,
Material material,
long attributes)
Convenience method to create a model with an arrow.
|
Model |
ModelBuilder.createArrow(Vector3 from,
Vector3 to,
Material material,
long attributes)
Convenience method to create a model with an arrow.
|
Model |
ModelBuilder.createBox(float width,
float height,
float depth,
int primitiveType,
Material material,
long attributes)
Convenience method to create a model with a single node containing a box shape.
|
Model |
ModelBuilder.createBox(float width,
float height,
float depth,
Material material,
long attributes)
Convenience method to create a model with a single node containing a box shape.
|
Model |
ModelBuilder.createCapsule(float radius,
float height,
int divisions,
int primitiveType,
Material material,
long attributes)
Convenience method to create a model with a single node containing a capsule shape.
|
Model |
ModelBuilder.createCapsule(float radius,
float height,
int divisions,
Material material,
long attributes)
Convenience method to create a model with a single node containing a capsule shape.
|
Model |
ModelBuilder.createCone(float width,
float height,
float depth,
int divisions,
int primitiveType,
Material material,
long attributes)
Convenience method to create a model with a single node containing a cone shape.
|
Model |
ModelBuilder.createCone(float width,
float height,
float depth,
int divisions,
int primitiveType,
Material material,
long attributes,
float angleFrom,
float angleTo)
Convenience method to create a model with a single node containing a cone shape.
|
Model |
ModelBuilder.createCone(float width,
float height,
float depth,
int divisions,
Material material,
long attributes)
Convenience method to create a model with a single node containing a cone shape.
|
Model |
ModelBuilder.createCone(float width,
float height,
float depth,
int divisions,
Material material,
long attributes,
float angleFrom,
float angleTo)
Convenience method to create a model with a single node containing a cone shape.
|
Model |
ModelBuilder.createCylinder(float width,
float height,
float depth,
int divisions,
int primitiveType,
Material material,
long attributes)
Convenience method to create a model with a single node containing a cylinder shape.
|
Model |
ModelBuilder.createCylinder(float width,
float height,
float depth,
int divisions,
int primitiveType,
Material material,
long attributes,
float angleFrom,
float angleTo)
Convenience method to create a model with a single node containing a cylinder shape.
|
Model |
ModelBuilder.createCylinder(float width,
float height,
float depth,
int divisions,
Material material,
long attributes)
Convenience method to create a model with a single node containing a cylinder shape.
|
Model |
ModelBuilder.createCylinder(float width,
float height,
float depth,
int divisions,
Material material,
long attributes,
float angleFrom,
float angleTo)
Convenience method to create a model with a single node containing a cylinder shape.
|
Model |
ModelBuilder.createLineGrid(int xDivisions,
int zDivisions,
float xSize,
float zSize,
Material material,
long attributes)
Convenience method to create a model which represents a grid of lines on the XZ plane.
|
Model |
ModelBuilder.createRect(float x00,
float y00,
float z00,
float x10,
float y10,
float z10,
float x11,
float y11,
float z11,
float x01,
float y01,
float z01,
float normalX,
float normalY,
float normalZ,
int primitiveType,
Material material,
long attributes)
Convenience method to create a model with a single node containing a rectangle shape.
|
Model |
ModelBuilder.createRect(float x00,
float y00,
float z00,
float x10,
float y10,
float z10,
float x11,
float y11,
float z11,
float x01,
float y01,
float z01,
float normalX,
float normalY,
float normalZ,
Material material,
long attributes)
Convenience method to create a model with a single node containing a rectangle shape.
|
Model |
ModelBuilder.createSphere(float width,
float height,
float depth,
int divisionsU,
int divisionsV,
int primitiveType,
Material material,
long attributes)
Convenience method to create a model with a single node containing a sphere shape.
|
Model |
ModelBuilder.createSphere(float width,
float height,
float depth,
int divisionsU,
int divisionsV,
int primitiveType,
Material material,
long attributes,
float angleUFrom,
float angleUTo,
float angleVFrom,
float angleVTo)
Convenience method to create a model with a single node containing a sphere shape.
|
Model |
ModelBuilder.createSphere(float width,
float height,
float depth,
int divisionsU,
int divisionsV,
Material material,
long attributes)
Convenience method to create a model with a single node containing a sphere shape.
|
Model |
ModelBuilder.createSphere(float width,
float height,
float depth,
int divisionsU,
int divisionsV,
Material material,
long attributes,
float angleUFrom,
float angleUTo,
float angleVFrom,
float angleVTo)
Convenience method to create a model with a single node containing a sphere shape.
|
Model |
ModelBuilder.createXYZCoordinates(float axisLength,
float capLength,
float stemThickness,
int divisions,
int primitiveType,
Material material,
long attributes)
Convenience method to create a model with three orthonormal vectors shapes.
|
Model |
ModelBuilder.createXYZCoordinates(float axisLength,
Material material,
long attributes) |
Model |
ModelBuilder.end()
End building the model.
|
Modifier and Type | Method and Description |
---|---|
Node |
ModelBuilder.node(String id,
Model model)
Adds the nodes of the specified model to a new node of the model being build.
|
static void |
ModelBuilder.rebuildReferences(Model model)
|
Copyright © 2021. All rights reserved.