com.jme3.bullet.control
Interface PhysicsControl

All Superinterfaces:
Control, Savable
All Known Implementing Classes:
CharacterControl, GhostControl, KinematicRagdollControl, RigidBodyControl, VehicleControl

public interface PhysicsControl
extends Control


Method Summary
 PhysicsSpace getPhysicsSpace()
           
 void setEnabled(boolean state)
          The physics object is removed from the physics space when the control is disabled.
 void setPhysicsSpace(PhysicsSpace space)
           
 
Methods inherited from interface com.jme3.scene.control.Control
cloneForSpatial, render, setSpatial, update
 
Methods inherited from interface com.jme3.export.Savable
read, write
 

Method Detail

setPhysicsSpace

void setPhysicsSpace(PhysicsSpace space)

getPhysicsSpace

PhysicsSpace getPhysicsSpace()

setEnabled

void setEnabled(boolean state)
The physics object is removed from the physics space when the control is disabled. When the control is enabled again the physics object is moved to the current location of the spatial and then added to the physics space. This allows disabling/enabling physics to move the spatial freely.

Parameters:
state -