com.jme3.scene.control
Interface Control

All Superinterfaces:
Savable
All Known Subinterfaces:
PhysicsControl
All Known Implementing Classes:
AbstractControl, AnimControl, BillboardControl, CameraControl, CharacterControl, ChaseCamera, GhostControl, KinematicRagdollControl, LightControl, LodControl, MotionTrack, MultiTerrainLodControl, NormalRecalcControl, ParticleEmitter.ParticleEmitterControl, RigidBodyControl, SkeletonControl, StatsView, TerrainGridLodControl, 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.


Method Summary
 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.
 void render(RenderManager rm, ViewPort vp)
          Should be called prior to queuing the spatial by the RenderManager.
 void setSpatial(Spatial spatial)
           
 void update(float tpf)
          Updates the control.
 
Methods inherited from interface com.jme3.export.Savable
read, write
 

Method Detail

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.

Parameters:
spatial -
Returns:
A clone of this control for the spatial

setSpatial

void setSpatial(Spatial spatial)
Parameters:
spatial - the spatial to be controlled. This should not be called from user code.

update

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

Parameters:
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.

Parameters:
rm -
vp -