|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.jme3.bullet.collision.PhysicsCollisionObject
com.jme3.bullet.objects.PhysicsRigidBody
com.jme3.bullet.objects.PhysicsVehicle
com.jme3.bullet.control.VehicleControl
public class VehicleControl
フィールドの概要 |
---|
コンストラクタの概要 | |
---|---|
VehicleControl()
|
|
VehicleControl(CollisionShape shape)
Creates a new PhysicsNode with the supplied collision shape |
|
VehicleControl(CollisionShape shape,
float mass)
|
メソッドの概要 | |
---|---|
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.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 VehicleControl()
public VehicleControl(CollisionShape shape)
child
- shape
- public VehicleControl(CollisionShape shape, float mass)
メソッドの詳細 |
---|
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 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
PhysicsVehicle
内の write
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
Savable
内の read
PhysicsVehicle
内の read
java.io.IOException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |