Click or drag to resize
SkinnedModelEntity Class
Skinned animation model entity (render model as a whole, with animation clips supported).
Inheritance Hierarchy

Namespace:  GeonBit.Core.Graphics
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class SkinnedModelEntity : CompositeModelEntity

The SkinnedModelEntity type exposes the following members.

Constructors
  NameDescription
Public methodSkinnedModelEntity(Model)
Create the model entity from model instance.
Public methodSkinnedModelEntity(String)
Create the model entity from asset path.
Top
Properties
  NameDescription
Public propertyCameraDistanceBias
Add bias to distance from camera when sorting by distance from camera. This is useful for particles, sprites etc.
(Inherited from BaseRenderableEntity.)
Public propertyCurrentClipName
Get the currently playing animation clip (or null if none defined).
Public propertyIsDebugEntity
If true, this entity will only show in debug / editor mode.
(Inherited from BaseRenderableEntity.)
Public propertyMeshesCount
Return meshes count.
(Inherited from CompositeModelEntity.)
Public propertyModel
Model to render.
(Inherited from CompositeModelEntity.)
Public propertyVisible
Get / Set if this entity is visible.
(Inherited from BaseRenderableEntity.)
Public propertyWireFrame
If true, will draw just the wireframe of the entity. Note: settings this property will change the rendering queue property.
(Inherited from BaseRenderableEntity.)
Top
Methods
  NameDescription
Public methodDoEntityDraw
Draw this model.
(Overrides CompositeModelEntityDoEntityDraw(Matrix).)
Public methodDraw
Draw this entity.
(Overrides CompositeModelEntityDraw(Node, Matrix, Matrix).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetBoundingBox
Get the bounding box of this entity, either from cache or calculate it.
(Inherited from BaseRenderableEntity.)
Public methodGetBoundingSphere
Get the bounding sphere of this entity, either from cache or calculate it.
(Inherited from BaseRenderableEntity.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLastBoundingBox
Return the last calculated bounding box. Note: this value may be out-of-date if transformations changed since last calculation.
(Inherited from BaseRenderableEntity.)
Public methodGetLastBoundingSphere
Return the last calculated bounding sphere. Note: this value may be out-of-date if transformations changed since last calculation.
(Inherited from BaseRenderableEntity.)
Public methodGetMaterials
Return a list with all materials in model. Note: if alternative materials are set, will return them. Note2: prevent duplications, eg if even if more than one part uses the same material it will only return it once.
(Inherited from CompositeModelEntity.)
Public methodGetMesh(Int32)
Get mesh entity by index.
(Inherited from CompositeModelEntity.)
Public methodGetMesh(String)
Get mesh entity by name.
(Inherited from CompositeModelEntity.)
Public methodGetMeshes
Get all meshes in this composite model.
(Inherited from CompositeModelEntity.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSetClip
Set current animation clip.
Public methodStatic memberSlerpMatrix
Interpolate between matrixes, used for animations blend.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Update animation step.
Top
Fields
  NameDescription
Public fieldBlendingState
Blending state for this entity.
(Inherited from BaseRenderableEntity.)
Public fieldLockWhileTransitioning
If true, and trying to change animation while still transitioning from previous animation, will not replace animation and lock until animation transition is complete.
Public fieldOnAnimationEnds
Optional callback to invoke every time an animation cycle ends.
Public fieldOnAnimationStart
Optional callback to invoke every time an animation cycle begins.
Public fieldRenderingQueue
Which rendering queue to use for this entity. Rendering queues determine different rendering settings (like opacity support, blending, sorting etc) + the order in which the entities are drawn.
(Inherited from BaseRenderableEntity.)
Public fieldTransitionTime
If > 0f, whenever we change clip we will transition into new animation clip, in an interpolation that will take this many seconds.
Top
See Also