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 floatalphaAnimationPlayerAnimPlayerIsoGameCharactercharacterbooleanisVehicleBodybooleanisVehicleWheelIsoLightSource[]lightsModelmodelIsoMovingObjectobjectVector3f[]originVector3fpainColorTexturetexMatrix4ftextureBlack1Matrix4ftextureDamage1Enables1Matrix4ftextureDamage1Enables2TexturetextureDamage1OverlayTexturetextureDamage1ShellMatrix4ftextureDamage2Enables1Matrix4ftextureDamage2Enables2TexturetextureDamage2OverlayTexturetextureDamage2ShellTexturetextureLightsMatrix4ftextureLightsEnables2TexturetextureMaskTexturetextureRustfloattextureRustAfloattintBfloattintGfloattintRbooleanupdateLightsVector3f[]worldPosMatrix4f[]xfrm -
Constructor Summary
Constructors Constructor Description ModelInstance(Model model, IsoGameCharacter character, AnimationPlayer player, boolean isVehicleBody, boolean isVehicleWheel) -
Method Summary
Modifier and Type Method Description voidDraw()voidLoadTexture(java.lang.String name)AnimationTrackPlay(java.lang.String animName, boolean looped, boolean finished, IsoGameCharacter chr)voidSetDir(Vector2 dir)voidUpdate(float time)voidUpdateDir()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
model
-
AnimPlayer
-
tex
-
textureRust
-
textureMask
-
textureLights
-
textureDamage1Overlay
-
textureDamage1Shell
-
textureDamage2Overlay
-
textureDamage2Shell
-
isVehicleBody
public boolean isVehicleBody -
isVehicleWheel
public boolean isVehicleWheel -
textureBlack1
-
textureLightsEnables2
-
textureDamage1Enables1
-
textureDamage1Enables2
-
textureDamage2Enables1
-
textureDamage2Enables2
-
textureRustA
public float textureRustA -
alpha
public float alpha -
painColor
-
character
-
object
-
origin
-
xfrm
-
worldPos
-
updateLights
public boolean updateLights -
tintR
public float tintR -
tintG
public float tintG -
tintB
public float tintB -
lights
-
-
Constructor Details
-
ModelInstance
public ModelInstance(Model model, IsoGameCharacter character, AnimationPlayer player, boolean isVehicleBody, boolean isVehicleWheel)
-
-
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
-