public class DebugShapeFactory
extends java.lang.Object
| Constructor and Description |
|---|
DebugShapeFactory() |
| Modifier and Type | Method and Description |
|---|---|
static com.jme3.scene.Mesh |
getDebugMesh(CollisionShape shape)
Create a mesh for visualizing the specified shape.
|
static com.jme3.scene.Spatial |
getDebugShape(CollisionShape collisionShape)
Create a debug spatial from the specified collision shape.
|
public static com.jme3.scene.Spatial getDebugShape(CollisionShape collisionShape)
This is mostly used internally. To attach a debug shape to a physics
object, call attachDebugShape(AssetManager manager); on it.
collisionShape - the shape to visualize (may be null, unaffected)public static com.jme3.scene.Mesh getDebugMesh(CollisionShape shape)
shape - (not null, unaffected)