public class CollisionShapeFactory
extends java.lang.Object
| Constructor and Description |
|---|
CollisionShapeFactory() |
| Modifier and Type | Method and Description |
|---|---|
static CollisionShape |
createBoxShape(com.jme3.scene.Spatial spatial) |
static CollisionShape |
createDynamicMeshShape(com.jme3.scene.Spatial spatial)
This method creates a hull shape for the given Spatial.
If you want to have mesh-accurate dynamic shapes (CPU intense!!!) use GImpact shapes, its probably best to do so with a low-poly version of your model. |
static CollisionShape |
createMeshShape(com.jme3.scene.Spatial spatial)
This type of collision shape is mesh-accurate and meant for immovable "world objects".
|
static void |
shiftCompoundShapeContents(CompoundCollisionShape compoundShape,
com.jme3.math.Vector3f vector)
This method moves each child shape of a compound shape by the given vector
|
public static CollisionShape createMeshShape(com.jme3.scene.Spatial spatial)
public static CollisionShape createDynamicMeshShape(com.jme3.scene.Spatial spatial)
public static CollisionShape createBoxShape(com.jme3.scene.Spatial spatial)
public static void shiftCompoundShapeContents(CompoundCollisionShape compoundShape, com.jme3.math.Vector3f vector)
vector -