Interface Control

All Superinterfaces:
Savable
All Known Subinterfaces:
PhysicsControl
All Known Implementing Classes:
AbstractControl, AbstractPhysicsControl, AbstractPhysicsDebugControl, AnimComposer, AnimControl, BetterCharacterControl, BillboardControl, BulletCharacterDebugControl, BulletGhostObjectDebugControl, BulletJointDebugControl, BulletRigidBodyDebugControl, BulletVehicleDebugControl, CameraControl, CharacterControl, ChaseCamera, DacConfiguration, DacLinks, DynamicAnimControl, EffectTrack.KillParticleControl, EnvironmentProbeControl, GhostControl, KinematicRagdollControl, LightControl, LodControl, MorphControl, MotionEvent, MotionTrack, MultiTerrainLodControl, NormalRecalcControl, ParticleEmitter.ParticleEmitterControl, RigidBodyControl, SkeletonControl, SkinningControl, 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 Details

    • cloneForSpatial

      @Deprecated 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 - the Spatial to be controlled by the clone
      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 - the caller (not null)
      vp - the relevant ViewPort (not null)