|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jmex.physics.util.PhysicsPicker
public class PhysicsPicker
A small tool to be able to pick the visual of physics nodes and move them around with the mouse.
| Constructor Summary | |
|---|---|
PhysicsPicker(com.jme.input.InputHandler input,
com.jme.scene.Node rootNode,
PhysicsSpace physicsSpace)
Constructor of the class. |
|
PhysicsPicker(com.jme.input.InputHandler input,
com.jme.scene.Node rootNode,
PhysicsSpace physicsSpace,
boolean allowRotation)
Constructor of the class. |
|
| Method Summary | |
|---|---|
void |
delete()
|
com.jme.input.InputHandler |
getInputHandler()
|
DynamicPhysicsNode |
getPickedNode()
|
boolean |
isPickModeVisual()
|
void |
setPickModeVisual(boolean pickModeVisual)
The mode used for picking: visual picking uses the bounding volumes and visual meshes of scene elements to determine what was clicked by the user, the physical mode uses the actual physical representations. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PhysicsPicker(com.jme.input.InputHandler input,
com.jme.scene.Node rootNode,
PhysicsSpace physicsSpace)
input - where getInputHandler() is attached torootNode - root node of the scene - used for pickingphysicsSpace - physics space to create joints in (picked nodes must reside in there)
public PhysicsPicker(com.jme.input.InputHandler input,
com.jme.scene.Node rootNode,
PhysicsSpace physicsSpace,
boolean allowRotation)
input - where getInputHandler() is attached torootNode - root node of the scene - used for pickingphysicsSpace - physics space to create joints in (picked nodes must reside in there)allowRotation - true to allow rotation of the picked object| Method Detail |
|---|
public com.jme.input.InputHandler getInputHandler()
public void delete()
public DynamicPhysicsNode getPickedNode()
public boolean isPickModeVisual()
setPickModeVisual(boolean)public void setPickModeVisual(boolean pickModeVisual)
pickModeVisual - true to switch to visual mode, false to switch to physical mode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||