Interface IModel
Represents a TriLib Model, which will be converted to a Game Object in Unity.
Namespace: TriLibCore.Interfaces
Assembly: TriLibCore.dll
Syntax
public interface IModel : IObject
Properties
BindPoses
Gets/Sets this Model bind poses.
Declaration
Matrix4x4[] BindPoses { get; set; }
Property Value
| Type | Description |
|---|---|
| Matrix4x4[] |
Bones
Gets/Sets this Model bones.
Declaration
List<IModel> Bones { get; set; }
Property Value
| Type | Description |
|---|---|
| List<IModel> |
Children
Gets/Sets this Model children.
Declaration
List<IModel> Children { get; set; }
Property Value
| Type | Description |
|---|---|
| List<IModel> |
GeometryGroup
Gets/Sets this Model Geometry Group.
Declaration
IGeometryGroup GeometryGroup { get; set; }
Property Value
| Type | Description |
|---|---|
| IGeometryGroup |
HasCustomPivot
Defines whether the given model uses a custom pivot.
Declaration
bool HasCustomPivot { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsBone
Indicates wheter this model is a bone.
Declaration
bool IsBone { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
LocalPosition
Gets/Sets this Model local position.
Declaration
Vector3 LocalPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
LocalRotation
Gets/Sets this Model local rotation.
Declaration
Quaternion LocalRotation { get; set; }
Property Value
| Type | Description |
|---|---|
| Quaternion |
LocalScale
Gets/Sets this Model local scale.
Declaration
Vector3 LocalScale { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
MaterialIndices
Gets/Sets this Model Material indices.
Declaration
int[] MaterialIndices { get; set; }
Property Value
| Type | Description |
|---|---|
| int[] |
OriginalGlobalMatrix
Original (not pivoted) model local to world matrix.
Declaration
Matrix4x4 OriginalGlobalMatrix { get; set; }
Property Value
| Type | Description |
|---|---|
| Matrix4x4 |
Parent
Gets/Sets this Model parent.
Declaration
IModel Parent { get; set; }
Property Value
| Type | Description |
|---|---|
| IModel |
Pivot
Gets/Sets this Model pivot in world space.
Declaration
Vector3 Pivot { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
UserProperties
Represents a series of model user defined properties.
Declaration
Dictionary<string, object> UserProperties { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, object> |
Visibility
Gets/Sets this Model visibility (visible or invisible).
Declaration
bool Visibility { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |