|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.jme3.cinematic.MotionPath
public class MotionPath
Motion path is used to create a path between way points.
コンストラクタの概要 | |
---|---|
MotionPath()
Create a motion Path |
メソッドの概要 | |
---|---|
void |
addListener(MotionPathListener listener)
Adds a motion pathListener to the path |
void |
addWayPoint(Vector3f wayPoint)
Addsa waypoint to the path |
void |
disableDebugShape()
disable the display of the path and the waypoints |
void |
enableDebugShape(AssetManager manager,
Node rootNode)
enable the display of the path and the waypoints |
float |
getCurveTension()
Returns the curve tension |
float |
getLength()
retruns the length of the path in world units |
int |
getNbWayPoints()
return the number of waypoints of this path |
Spline.SplineType |
getPathSplineType()
return the type of spline used for the path interpolation for this path |
Vector3f |
getWayPoint(int i)
returns the waypoint at the given index |
Vector3f |
interpolatePath(float tpf,
MotionTrack control)
interpolate the path giving the tpf and the motionControl |
boolean |
isCycle()
returns true if the path is a cycle |
java.util.Iterator<Vector3f> |
iterator()
returns an iterator on the waypoints collection |
void |
read(JmeImporter im)
|
void |
removeListener(MotionPathListener listener)
remove the given listener |
void |
removeWayPoint(int i)
remove the waypoint at the given index from the path |
void |
removeWayPoint(Vector3f wayPoint)
remove the waypoint from the path |
void |
setCurveTension(float curveTension)
sets the tension of the curve (only for catmull rom) 0.0 will give a linear curve, 1.0 a round curve |
void |
setCycle(boolean cycle)
Sets the path to be a cycle |
void |
setPathSplineType(Spline.SplineType pathSplineType)
sets the type of spline used for the path interpolation for this path |
void |
triggerWayPointReach(int wayPointIndex,
MotionTrack control)
|
void |
write(JmeExporter ex)
|
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public MotionPath()
メソッドの詳細 |
---|
public Vector3f interpolatePath(float tpf, MotionTrack control)
tpf
- control
-
public void write(JmeExporter ex) throws java.io.IOException
Savable
内の write
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
Savable
内の read
java.io.IOException
public void addWayPoint(Vector3f wayPoint)
wayPoint
- a position in world spacepublic float getLength()
public Vector3f getWayPoint(int i)
i
- the index
public void removeWayPoint(Vector3f wayPoint)
wayPoint
- the waypoint to removepublic void removeWayPoint(int i)
i
- the index of the waypoint to removepublic java.util.Iterator<Vector3f> iterator()
public Spline.SplineType getPathSplineType()
public void setPathSplineType(Spline.SplineType pathSplineType)
pathSplineType
- public void disableDebugShape()
public void enableDebugShape(AssetManager manager, Node rootNode)
manager
- the assetManagerrootNode
- the node where the debug shapes must be attachedpublic void addListener(MotionPathListener listener)
listener
- the MotionPathListener to attachpublic void removeListener(MotionPathListener listener)
listener
- the listener to removepublic int getNbWayPoints()
public void triggerWayPointReach(int wayPointIndex, MotionTrack control)
public float getCurveTension()
public void setCurveTension(float curveTension)
curveTension
- public void setCycle(boolean cycle)
cycle
- public boolean isCycle()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |