com.jme3.bullet.control
クラス GhostControl

java.lang.Object
  上位を拡張 com.jme3.bullet.collision.PhysicsCollisionObject
      上位を拡張 com.jme3.bullet.objects.PhysicsGhostObject
          上位を拡張 com.jme3.bullet.control.GhostControl
すべての実装されたインタフェース:
PhysicsControl, Savable, Control

public class GhostControl
extends PhysicsGhostObject
implements PhysicsControl

A GhostControl moves with the spatial it is attached to and can be used to check overlaps with other physics objects (e.g. aggro radius).


フィールドの概要
 
クラス com.jme3.bullet.collision.PhysicsCollisionObject から継承されたフィールド
COLLISION_GROUP_01, COLLISION_GROUP_02, COLLISION_GROUP_03, COLLISION_GROUP_04, COLLISION_GROUP_05, COLLISION_GROUP_06, COLLISION_GROUP_07, COLLISION_GROUP_08, COLLISION_GROUP_09, COLLISION_GROUP_10, COLLISION_GROUP_11, COLLISION_GROUP_12, COLLISION_GROUP_13, COLLISION_GROUP_14, COLLISION_GROUP_15, COLLISION_GROUP_16, COLLISION_GROUP_NONE
 
コンストラクタの概要
GhostControl()
           
GhostControl(CollisionShape shape)
           
 
メソッドの概要
 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.
 PhysicsSpace getPhysicsSpace()
           
 boolean isApplyPhysicsLocal()
           
 boolean isEnabled()
           
 void read(JmeImporter im)
           
 void render(RenderManager rm, ViewPort vp)
          Should be called prior to queuing the spatial by the RenderManager.
 void setApplyPhysicsLocal(boolean applyPhysicsLocal)
          When set to true, the physics coordinates will be applied to the local translation of the Spatial
 void setEnabled(boolean enabled)
          The physics object is removed from the physics space when the control is disabled.
 void setPhysicsSpace(PhysicsSpace space)
           
 void setSpatial(Spatial spatial)
           
 void update(float tpf)
          Updates the control.
 void write(JmeExporter ex)
           
 
クラス com.jme3.bullet.objects.PhysicsGhostObject から継承されたメソッド
destroy, getCcdMotionThreshold, getCcdSquareMotionThreshold, getCcdSweptSphereRadius, getObjectId, getOverlapping, getOverlappingCount, getOverlappingObjects, getPhysicsLocation, getPhysicsLocation, getPhysicsRotation, getPhysicsRotation, getPhysicsRotationMatrix, getPhysicsRotationMatrix, getPhysicsTransform, setCcdMotionThreshold, setCcdSweptSphereRadius, setCollisionShape, setPhysicsLocation, setPhysicsRotation, setPhysicsRotation
 
クラス com.jme3.bullet.collision.PhysicsCollisionObject から継承されたメソッド
addCollideWithGroup, createDebugShape, debugShape, detachDebugShape, getCollideWithGroups, getCollisionGroup, getCollisionShape, getUserObject, removeCollideWithGroup, setCollideWithGroups, setCollisionGroup, setUserObject
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

GhostControl

public GhostControl()

GhostControl

public GhostControl(CollisionShape shape)
メソッドの詳細

isApplyPhysicsLocal

public boolean isApplyPhysicsLocal()

setApplyPhysicsLocal

public void setApplyPhysicsLocal(boolean applyPhysicsLocal)
When set to true, the physics coordinates will be applied to the local translation of the Spatial

パラメータ:
applyPhysicsLocal -

cloneForSpatial

public Control cloneForSpatial(Spatial spatial)
インタフェース Control の記述:
Creates a clone of the Control, the given Spatial is the cloned version of the spatial to which this control is attached to.

定義:
インタフェース Control 内の cloneForSpatial
戻り値:
A clone of this control for the spatial

setSpatial

public void setSpatial(Spatial spatial)
定義:
インタフェース Control 内の setSpatial
パラメータ:
spatial - the spatial to be controlled. This should not be called from user code.

setEnabled

public void setEnabled(boolean enabled)
インタフェース PhysicsControl の記述:
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.

定義:
インタフェース PhysicsControl 内の setEnabled
定義:
インタフェース Control 内の setEnabled
パラメータ:
enabled - Enable or disable the control. If disabled, update() should do nothing.

isEnabled

public boolean isEnabled()
定義:
インタフェース Control 内の isEnabled
戻り値:
True if enabled, false otherwise.
関連項目:
Control.setEnabled(boolean)

update

public void update(float tpf)
インタフェース Control の記述:
Updates the control. This should not be called from user code.

定義:
インタフェース Control 内の update
パラメータ:
tpf - Time per frame.

render

public void render(RenderManager rm,
                   ViewPort vp)
インタフェース Control の記述:
Should be called prior to queuing the spatial by the RenderManager. This should not be called from user code.

定義:
インタフェース Control 内の render

setPhysicsSpace

public void setPhysicsSpace(PhysicsSpace space)
定義:
インタフェース PhysicsControl 内の setPhysicsSpace

getPhysicsSpace

public PhysicsSpace getPhysicsSpace()
定義:
インタフェース PhysicsControl 内の getPhysicsSpace

write

public void write(JmeExporter ex)
           throws java.io.IOException
定義:
インタフェース Savable 内の write
オーバーライド:
クラス PhysicsGhostObject 内の write
例外:
java.io.IOException

read

public void read(JmeImporter im)
          throws java.io.IOException
定義:
インタフェース Savable 内の read
オーバーライド:
クラス PhysicsGhostObject 内の read
例外:
java.io.IOException