|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectcom.jme3.bullet.collision.PhysicsCollisionObject
com.jme3.bullet.objects.PhysicsRigidBody
com.jme3.bullet.control.RigidBodyControl
public class RigidBodyControl
| フィールドの概要 |
|---|
| コンストラクタの概要 | |
|---|---|
RigidBodyControl()
|
|
RigidBodyControl(CollisionShape shape)
Creates a new PhysicsNode with the supplied collision shape and mass 1 |
|
RigidBodyControl(CollisionShape shape,
float mass)
|
|
RigidBodyControl(float mass)
When using this constructor, the CollisionShape for the RigidBody is generated automatically when the Control is added to a Spatial. |
|
| メソッドの概要 | |
|---|---|
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()
|
boolean |
isKinematicSpatial()
Checks if this control is in kinematic spatial mode. |
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 instead of the world traslation. |
void |
setEnabled(boolean enabled)
The physics object is removed from the physics space when the control is disabled. |
void |
setKinematicSpatial(boolean kinematicSpatial)
Sets this control to kinematic spatial mode so that the spatials transform will be applied to the rigidbody in kinematic mode, defaults to true. |
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 RigidBodyControl()
public RigidBodyControl(float mass)
mass - When not 0, a HullCollisionShape is generated, otherwise a MeshCollisionShape is used. For geometries with box or sphere meshes the proper box or sphere collision shape is used.public RigidBodyControl(CollisionShape shape)
child - shape -
public RigidBodyControl(CollisionShape shape,
float mass)
| メソッドの詳細 |
|---|
public Control cloneForSpatial(Spatial spatial)
Control の記述:
Control 内の cloneForSpatialpublic void setSpatial(Spatial spatial)
Control 内の setSpatialspatial - the spatial to be controlled. This should not be called
from user code.public void setEnabled(boolean enabled)
PhysicsControl の記述:
PhysicsControl 内の setEnabledControl 内の setEnabledenabled - Enable or disable the control. If disabled, update()
should do nothing.public boolean isEnabled()
Control 内の isEnabledControl.setEnabled(boolean)public boolean isKinematicSpatial()
public void setKinematicSpatial(boolean kinematicSpatial)
kinematicSpatial - public boolean isApplyPhysicsLocal()
public void setApplyPhysicsLocal(boolean applyPhysicsLocal)
applyPhysicsLocal - public void update(float tpf)
Control の記述:
Control 内の updatetpf - Time per frame.
public void render(RenderManager rm,
ViewPort vp)
Control の記述:
Control 内の renderpublic void setPhysicsSpace(PhysicsSpace space)
PhysicsControl 内の setPhysicsSpacepublic PhysicsSpace getPhysicsSpace()
PhysicsControl 内の getPhysicsSpace
public void write(JmeExporter ex)
throws java.io.IOException
Savable 内の writePhysicsRigidBody 内の writejava.io.IOException
public void read(JmeImporter im)
throws java.io.IOException
Savable 内の readPhysicsRigidBody 内の readjava.io.IOException
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||