com.jme3.bullet.control
クラス CharacterControl

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

public class CharacterControl
extends PhysicsCharacter
implements PhysicsControl


フィールドの概要
 
クラス 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
 
コンストラクタの概要
CharacterControl()
           
CharacterControl(CollisionShape shape, float stepHeight)
           
 
メソッドの概要
 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()
           
 Vector3f getViewDirection()
           
 boolean isApplyPhysicsLocal()
           
 boolean isEnabled()
           
 boolean isUseViewDirection()
           
 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 setUseViewDirection(boolean viewDirectionEnabled)
           
 void setViewDirection(Vector3f vec)
           
 void update(float tpf)
          Updates the control.
 void write(JmeExporter ex)
           
 
クラス com.jme3.bullet.objects.PhysicsCharacter から継承されたメソッド
destroy, getCcdMotionThreshold, getCcdSquareMotionThreshold, getCcdSweptSphereRadius, getControllerId, getFallSpeed, getGravity, getJumpSpeed, getMaxSlope, getObjectId, getPhysicsLocation, getPhysicsLocation, getUpAxis, getWalkDirection, jump, onGround, setCcdMotionThreshold, setCcdSweptSphereRadius, setCollisionShape, setFallSpeed, setGravity, setJumpSpeed, setMaxSlope, setPhysicsLocation, setUpAxis, setWalkDirection, warp
 
クラス 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
 

コンストラクタの詳細

CharacterControl

public CharacterControl()

CharacterControl

public CharacterControl(CollisionShape shape,
                        float stepHeight)
メソッドの詳細

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)

setViewDirection

public void setViewDirection(Vector3f vec)

getViewDirection

public Vector3f getViewDirection()

isUseViewDirection

public boolean isUseViewDirection()

setUseViewDirection

public void setUseViewDirection(boolean viewDirectionEnabled)

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
オーバーライド:
クラス PhysicsCharacter 内の write
例外:
java.io.IOException

read

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