public class SpatialTweens
extends java.lang.Object
Constructor and Description |
---|
SpatialTweens() |
Modifier and Type | Method and Description |
---|---|
static Tween |
attach(com.jme3.scene.Spatial target,
com.jme3.scene.Spatial parent)
Creates a Tween that will attach the specified spatial to the specified
parent when executed with any value of t greater than or equal to 0.
|
static Tween |
detach(com.jme3.scene.Spatial target)
Creates a Tween that will detach the specified spatial when executed
with any value of t greater than or equal to 0.
|
static Tween |
focusOn(com.jme3.scene.Spatial target)
Sets the focus to the specified spatial.
|
static Tween |
move(com.jme3.scene.Spatial target,
com.jme3.math.Vector3f from,
com.jme3.math.Vector3f to)
Creates a tween that will interpolate the location of the specified target
from one location to another.
|
static Tween |
move(com.jme3.scene.Spatial target,
com.jme3.math.Vector3f from,
com.jme3.math.Vector3f to,
double length)
Creates a tween that will interpolate the location of the specified target
from one location to another.
|
static Tween |
rotate(com.jme3.scene.Spatial target,
com.jme3.math.Quaternion from,
com.jme3.math.Quaternion to,
double length)
Creates a tween that will interpolate the rotation of the specified target
from one rotation to another.
|
static Tween |
scale(com.jme3.scene.Spatial target,
float from,
float to,
double length)
Creates a tween that will interpolate the overall scale of the specified target
from one scale to another.
|
static Tween |
scale(com.jme3.scene.Spatial target,
com.jme3.math.Vector3f from,
com.jme3.math.Vector3f to,
double length)
Creates a tween that will interpolate the scale of the specified target
from one scale to another.
|
public static Tween move(com.jme3.scene.Spatial target, com.jme3.math.Vector3f from, com.jme3.math.Vector3f to)
public static Tween move(com.jme3.scene.Spatial target, com.jme3.math.Vector3f from, com.jme3.math.Vector3f to, double length)
public static Tween rotate(com.jme3.scene.Spatial target, com.jme3.math.Quaternion from, com.jme3.math.Quaternion to, double length)
public static Tween scale(com.jme3.scene.Spatial target, float from, float to, double length)
public static Tween scale(com.jme3.scene.Spatial target, com.jme3.math.Vector3f from, com.jme3.math.Vector3f to, double length)
public static Tween detach(com.jme3.scene.Spatial target)
public static Tween attach(com.jme3.scene.Spatial target, com.jme3.scene.Spatial parent)
public static Tween focusOn(com.jme3.scene.Spatial target)