Home | History | Annotate | Download | only in control
      1 /*
      2  * To change this template, choose Tools | Templates
      3  * and open the template in the editor.
      4  */
      5 package com.jme3.bullet.control;
      6 
      7 import com.jme3.bullet.PhysicsSpace;
      8 import com.jme3.scene.control.Control;
      9 
     10 /**
     11  *
     12  * @author normenhansen
     13  */
     14 public interface PhysicsControl extends Control {
     15 
     16     public void setPhysicsSpace(PhysicsSpace space);
     17 
     18     public PhysicsSpace getPhysicsSpace();
     19 
     20     /**
     21      * The physics object is removed from the physics space when the control
     22      * is disabled. When the control is enabled  again the physics object is
     23      * moved to the current location of the spatial and then added to the physics
     24      * space. This allows disabling/enabling physics to move the spatial freely.
     25      * @param state
     26      */
     27     public void setEnabled(boolean state);
     28 }
     29