Logo
公開メンバ関数 | 静的公開メンバ関数 | 公開変数類 | 全メンバ一覧
SharpKmyGfx.ModelInstance クラス

公開メンバ関数

 ModelInstance (ModelData data, Material[] list, Guid stampGUID)
 
 ModelInstance (IntPtr modelinstance)
 
void Dispose ()
 
IntPtr getNativeModelInstance ()
 
void setVisibility (bool flg)
 
ModelData getModel ()
 
void setDisplayID (UInt32 id)
 
void setPickupID (UInt16 id)
 
void setOverrideColor (float r, float g, float b, float a)
 
void setOpacityMultiplier (float p)
 
void setDrawHidden (bool flg)
 
void buildingLightOn (bool flg)
 
void enableFrustumCulling (bool flg)
 
void setIgnoreMotion (int channel, List< string > list)
 
void addMotion (string name, ModelData motion, bool loop, bool useCombine)
 
void addMotion (string name, ModelData motion, bool loop, bool useCombine, string stackName)
 
void addMotion (string name, ModelData motion, float start, float end, bool loop, bool useCombine, string stackName)
 
void clearMotion ()
 
void removeAnimatedTransform (bool clearAnimation)
 
void playMotion (string name, float blendTime, bool force)
 
void playMotion (string name, float blendTime)
 
void setMorphBlend (string name, float blend)
 
float getMorphBlend (string name)
 
bool containsMotion (string name)
 
int getMotionLoopCount ()
 
List< string > getMotionNameList ()
 
List< string > getMorphNameList ()
 
Guid getStampGUID ()
 
SharpKmyMath.Matrix4 getNodeMatrix (string name)
 
void setNodeMatrix (string name, SharpKmyMath.Matrix4 matrix)
 
NodeInstance getRootNode ()
 
int getMaterialCount ()
 
MaterialInstance getMaterialInstance (UInt32 idx)
 
void setMaterial (int index, Material mtl)
 
void getBound (ref SharpKmyMath.Vector3 min, ref SharpKmyMath.Vector3 max)
 
void stopPickup (bool flg)
 
SharpKmyPhysics.PhysicsObject getPhysicsObject ()
 
void clearNodePosturePhysicsOverrideFlag ()
 
void vrmTeleportRequest ()
 
void setLODThreshold (int level, float value)
 

静的公開メンバ関数

static List< ModelInstancegetModelInstanceListByStampGUID (Guid guid)
 

公開変数類

ModelData mdl = null
 
float minX = 0
 
float minY = 0
 
float minZ = 0
 
float maxX = 0
 
float maxY = 0
 
float maxZ = 0
 

構築子と解体子

◆ ModelInstance() [1/2]

SharpKmyGfx.ModelInstance.ModelInstance ( ModelData  data,
Material[]  list,
Guid  stampGUID 
)

◆ ModelInstance() [2/2]

SharpKmyGfx.ModelInstance.ModelInstance ( IntPtr  modelinstance)

メソッド詳解

◆ addMotion() [1/3]

void SharpKmyGfx.ModelInstance.addMotion ( string  name,
ModelData  motion,
bool  loop,
bool  useCombine 
)

◆ addMotion() [2/3]

void SharpKmyGfx.ModelInstance.addMotion ( string  name,
ModelData  motion,
bool  loop,
bool  useCombine,
string  stackName 
)

◆ addMotion() [3/3]

void SharpKmyGfx.ModelInstance.addMotion ( string  name,
ModelData  motion,
float  start,
float  end,
bool  loop,
bool  useCombine,
string  stackName 
)

◆ buildingLightOn()

void SharpKmyGfx.ModelInstance.buildingLightOn ( bool  flg)

◆ clearMotion()

void SharpKmyGfx.ModelInstance.clearMotion ( )

◆ clearNodePosturePhysicsOverrideFlag()

void SharpKmyGfx.ModelInstance.clearNodePosturePhysicsOverrideFlag ( )

◆ containsMotion()

bool SharpKmyGfx.ModelInstance.containsMotion ( string  name)

◆ Dispose()

void SharpKmyGfx.ModelInstance.Dispose ( )

◆ enableFrustumCulling()

void SharpKmyGfx.ModelInstance.enableFrustumCulling ( bool  flg)

◆ getBound()

void SharpKmyGfx.ModelInstance.getBound ( ref SharpKmyMath.Vector3  min,
ref SharpKmyMath.Vector3  max 
)

◆ getMaterialCount()

int SharpKmyGfx.ModelInstance.getMaterialCount ( )

◆ getMaterialInstance()

MaterialInstance SharpKmyGfx.ModelInstance.getMaterialInstance ( UInt32  idx)

◆ getModel()

ModelData SharpKmyGfx.ModelInstance.getModel ( )

◆ getModelInstanceListByStampGUID()

static List< ModelInstance > SharpKmyGfx.ModelInstance.getModelInstanceListByStampGUID ( Guid  guid)
static

◆ getMorphBlend()

float SharpKmyGfx.ModelInstance.getMorphBlend ( string  name)

◆ getMorphNameList()

List< string > SharpKmyGfx.ModelInstance.getMorphNameList ( )

◆ getMotionLoopCount()

int SharpKmyGfx.ModelInstance.getMotionLoopCount ( )

◆ getMotionNameList()

List< string > SharpKmyGfx.ModelInstance.getMotionNameList ( )

◆ getNativeModelInstance()

IntPtr SharpKmyGfx.ModelInstance.getNativeModelInstance ( )

◆ getNodeMatrix()

SharpKmyMath.Matrix4 SharpKmyGfx.ModelInstance.getNodeMatrix ( string  name)

◆ getPhysicsObject()

SharpKmyPhysics.PhysicsObject SharpKmyGfx.ModelInstance.getPhysicsObject ( )

◆ getRootNode()

NodeInstance SharpKmyGfx.ModelInstance.getRootNode ( )

◆ getStampGUID()

Guid SharpKmyGfx.ModelInstance.getStampGUID ( )

◆ playMotion() [1/2]

void SharpKmyGfx.ModelInstance.playMotion ( string  name,
float  blendTime 
)

◆ playMotion() [2/2]

void SharpKmyGfx.ModelInstance.playMotion ( string  name,
float  blendTime,
bool  force 
)

◆ removeAnimatedTransform()

void SharpKmyGfx.ModelInstance.removeAnimatedTransform ( bool  clearAnimation)

◆ setDisplayID()

void SharpKmyGfx.ModelInstance.setDisplayID ( UInt32  id)

◆ setDrawHidden()

void SharpKmyGfx.ModelInstance.setDrawHidden ( bool  flg)

◆ setIgnoreMotion()

void SharpKmyGfx.ModelInstance.setIgnoreMotion ( int  channel,
List< string >  list 
)

◆ setLODThreshold()

void SharpKmyGfx.ModelInstance.setLODThreshold ( int  level,
float  value 
)

◆ setMaterial()

void SharpKmyGfx.ModelInstance.setMaterial ( int  index,
Material  mtl 
)

◆ setMorphBlend()

void SharpKmyGfx.ModelInstance.setMorphBlend ( string  name,
float  blend 
)

◆ setNodeMatrix()

void SharpKmyGfx.ModelInstance.setNodeMatrix ( string  name,
SharpKmyMath.Matrix4  matrix 
)

◆ setOpacityMultiplier()

void SharpKmyGfx.ModelInstance.setOpacityMultiplier ( float  p)

◆ setOverrideColor()

void SharpKmyGfx.ModelInstance.setOverrideColor ( float  r,
float  g,
float  b,
float  a 
)

◆ setPickupID()

void SharpKmyGfx.ModelInstance.setPickupID ( UInt16  id)

◆ setVisibility()

void SharpKmyGfx.ModelInstance.setVisibility ( bool  flg)

◆ stopPickup()

void SharpKmyGfx.ModelInstance.stopPickup ( bool  flg)

◆ vrmTeleportRequest()

void SharpKmyGfx.ModelInstance.vrmTeleportRequest ( )

メンバ詳解

◆ maxX

float SharpKmyGfx.ModelInstance.maxX = 0

◆ maxY

float SharpKmyGfx.ModelInstance.maxY = 0

◆ maxZ

float SharpKmyGfx.ModelInstance.maxZ = 0

◆ mdl

ModelData SharpKmyGfx.ModelInstance.mdl = null

◆ minX

float SharpKmyGfx.ModelInstance.minX = 0

◆ minY

float SharpKmyGfx.ModelInstance.minY = 0

◆ minZ

float SharpKmyGfx.ModelInstance.minZ = 0