Package zombie.core.skinnedmodel.model
Class ModelInstance
java.lang.Object
zombie.core.skinnedmodel.model.ModelInstance
public class ModelInstance
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description AnimationPlayer
AnimPlayer
IsoGameCharacter
character
IsoLightSource[]
lights
Model
model
Texture
tex
float
tintB
float
tintG
float
tintR
boolean
updateLights
-
Constructor Summary
Constructors Constructor Description ModelInstance(Model model, IsoGameCharacter character, AnimationPlayer player)
-
Method Summary
Modifier and Type Method Description void
Draw()
void
LoadTexture(java.lang.String name)
AnimationTrack
Play(java.lang.String animName, boolean looped, boolean finished, IsoGameCharacter chr)
void
SetDir(Vector2 dir)
void
Update(float time)
void
UpdateDir()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
model
-
AnimPlayer
-
tex
-
character
-
updateLights
public boolean updateLights -
tintR
public float tintR -
tintG
public float tintG -
tintB
public float tintB -
lights
-
-
Constructor Details
-
ModelInstance
-
-
Method Details
-
LoadTexture
public void LoadTexture(java.lang.String name) -
Draw
public void Draw() -
Play
public AnimationTrack Play(java.lang.String animName, boolean looped, boolean finished, IsoGameCharacter chr) -
UpdateDir
public void UpdateDir() -
Update
public void Update(float time) -
SetDir
-