Class BulletVehicleDebugControl

java.lang.Object
com.jme3.scene.control.AbstractControl
com.jme3.bullet.debug.AbstractPhysicsDebugControl
com.jme3.bullet.debug.BulletVehicleDebugControl
All Implemented Interfaces:
com.jme3.export.Savable, com.jme3.scene.control.Control, com.jme3.util.clone.JmeCloneable, Cloneable

public class BulletVehicleDebugControl extends AbstractPhysicsDebugControl
A physics-debug control used to visualize a PhysicsVehicle.
  • Field Details

    • logger

      public static final Logger logger
      message logger for this class
  • Constructor Details

    • BulletVehicleDebugControl

      public BulletVehicleDebugControl(BulletDebugAppState debugAppState, PhysicsVehicle ve)
      Instantiate an enabled control to visualize the specified vehicle.
      Parameters:
      debugAppState - which app state (not null, alias created)
      ve - which vehicle to visualize (not null, alias created)
  • Method Details

    • controlUpdate

      protected void controlUpdate(float tpf)
      Update this control. Invoked once per frame during the logical-state update, provided the control is enabled and added to a scene. Should be invoked only by a subclass or by AbstractControl.
      Specified by:
      controlUpdate in class com.jme3.scene.control.AbstractControl
      Parameters:
      tpf - the time interval between frames (in seconds, ≥0)
    • setSpatial

      public void setSpatial(com.jme3.scene.Spatial spatial)
      Alter which Spatial is controlled. Invoked when the Control is added to or removed from a Spatial. Should be invoked only by a subclass or from Spatial. Do not invoke directly from user code.
      Specified by:
      setSpatial in interface com.jme3.scene.control.Control
      Overrides:
      setSpatial in class com.jme3.scene.control.AbstractControl
      Parameters:
      spatial - the Spatial to control (or null)