Package com.jme3.bullet.util
Class DebugShapeFactory
java.lang.Object
com.jme3.bullet.util.DebugShapeFactory
- Author:
- CJ Hare, normenhansen
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.jme3.scene.MeshgetDebugMesh(CollisionShape shape) static com.jme3.scene.SpatialgetDebugShape(CollisionShape collisionShape) Creates a debug shape from the given collision shape.
-
Method Details
-
getDebugShape
Creates a debug shape from the given collision shape. This is mostly used internally.
To attach a debug shape to a physics object, callattachDebugShape(AssetManager manager);on it.- Parameters:
collisionShape- the CollisionShape to use or null- Returns:
- a new Spatial or null
-
getDebugMesh
-