|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.jme3.bullet.collision.PhysicsCollisionObject
com.jme3.bullet.objects.PhysicsCharacter
com.jme3.bullet.control.CharacterControl
public class CharacterControl
フィールドの概要 |
---|
コンストラクタの概要 | |
---|---|
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.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 |
コンストラクタの詳細 |
---|
public CharacterControl()
public CharacterControl(CollisionShape shape, float stepHeight)
メソッドの詳細 |
---|
public boolean isApplyPhysicsLocal()
public void setApplyPhysicsLocal(boolean applyPhysicsLocal)
applyPhysicsLocal
- public Control cloneForSpatial(Spatial spatial)
Control
の記述:
Control
内の cloneForSpatial
public void setSpatial(Spatial spatial)
Control
内の setSpatial
spatial
- the spatial to be controlled. This should not be called
from user code.public void setEnabled(boolean enabled)
PhysicsControl
の記述:
PhysicsControl
内の setEnabled
Control
内の setEnabled
enabled
- Enable or disable the control. If disabled, update()
should do nothing.public boolean isEnabled()
Control
内の isEnabled
Control.setEnabled(boolean)
public void setViewDirection(Vector3f vec)
public Vector3f getViewDirection()
public boolean isUseViewDirection()
public void setUseViewDirection(boolean viewDirectionEnabled)
public void update(float tpf)
Control
の記述:
Control
内の update
tpf
- Time per frame.public void render(RenderManager rm, ViewPort vp)
Control
の記述:
Control
内の render
public void setPhysicsSpace(PhysicsSpace space)
PhysicsControl
内の setPhysicsSpace
public PhysicsSpace getPhysicsSpace()
PhysicsControl
内の getPhysicsSpace
public void write(JmeExporter ex) throws java.io.IOException
Savable
内の write
PhysicsCharacter
内の write
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
Savable
内の read
PhysicsCharacter
内の read
java.io.IOException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |