com.jme3.scene.control
インタフェース Control

すべてのスーパーインタフェース:
Savable
既知のサブインタフェースの一覧:
PhysicsControl
既知の実装クラスの一覧:
AbstractControl, AnimControl, BillboardControl, CameraControl, CharacterControl, ChaseCamera, GhostControl, KinematicRagdollControl, LightControl, LodControl, MotionTrack, NormalRecalcControl, ParticleEmitter.ParticleEmitterControl, RigidBodyControl, SkeletonControl, StatsView, TerrainLodControl, UpdateControl, VehicleControl

public interface Control
extends Savable

An interface for scene-graph controls.

Controls are used to specify certain update and render logic for a Spatial.


メソッドの概要
 Control cloneForSpatial(Spatial spatial)
          Creates a clone of the Control, the given Spatial is the cloned version of the spatial to which this control is attached to.
 boolean isEnabled()
           
 void render(RenderManager rm, ViewPort vp)
          Should be called prior to queuing the spatial by the RenderManager.
 void setEnabled(boolean enabled)
           
 void setSpatial(Spatial spatial)
           
 void update(float tpf)
          Updates the control.
 
インタフェース com.jme3.export.Savable から継承されたメソッド
read, write
 

メソッドの詳細

cloneForSpatial

Control cloneForSpatial(Spatial spatial)
Creates a clone of the Control, the given Spatial is the cloned version of the spatial to which this control is attached to.

パラメータ:
spatial -
戻り値:
A clone of this control for the spatial

setSpatial

void setSpatial(Spatial spatial)
パラメータ:
spatial - the spatial to be controlled. This should not be called from user code.

setEnabled

void setEnabled(boolean enabled)
パラメータ:
enabled - Enable or disable the control. If disabled, update() should do nothing.

isEnabled

boolean isEnabled()
戻り値:
True if enabled, false otherwise.
関連項目:
setEnabled(boolean)

update

void update(float tpf)
Updates the control. This should not be called from user code.

パラメータ:
tpf - Time per frame.

render

void render(RenderManager rm,
            ViewPort vp)
Should be called prior to queuing the spatial by the RenderManager. This should not be called from user code.

パラメータ:
rm -
vp -