|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.loaders.models.cal3d.core.CalMorphTargetMixer
public class CalMorphTargetMixer
| Constructor Summary | |
|---|---|
CalMorphTargetMixer(CalModel model)
|
|
| Method Summary | |
|---|---|
void |
blend(int id,
float weight,
float delay)
Interpolates the weight of a morph target. |
void |
clear(int id,
float delay)
Fades a morph target out. |
float |
getCurrentWeight(int id)
Get the weight of a morph target. |
float |
getCurrentWeightBase()
Get the weight of the base vertices. |
int |
getMorphTargetCount()
Returns the number of morph targets this morph target mixer mixes. |
void |
update(float deltaTime)
Updates all morph targets. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CalMorphTargetMixer(CalModel model)
| Method Detail |
|---|
public void blend(int id,
float weight,
float delay)
id - The ID of the morph target that should be blended.weight - The weight to interpolate the morph target to.delay - The time in seconds until the new weight should be reached.
public void clear(int id,
float delay)
id - The ID of the morph target that should be faded out.delay - The time in seconds until the the morph target is
completely removed.public float getCurrentWeight(int id)
id - The id of the morph target which weight you want.
public float getCurrentWeightBase()
public int getMorphTargetCount()
public void update(float deltaTime)
deltaTime - The elapsed time in seconds since the last update.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||