public abstract class CollisionShape
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CollisionShape.Type
An enum to determine the type of the collision shape.
|
| Modifier and Type | Method and Description |
|---|---|
static CollisionShape |
createBoxCollisionShape(float sizeX,
float sizeY,
float sizeZ)
Creates a new box collision shape.
|
static CollisionShape |
createHullCollisionShape()
Creates a new hull collision shape, i.e. a rough representation of a mesh
shape, but faster.
|
static CollisionShape |
createMeshCollisionShape()
Creates a new mesh-accurate collision shape.
|
static CollisionShape |
createSphereCollisionShape(float radius)
Creates a new spherical collision shape.
|
abstract int |
getData()
Used internally.
|
abstract float |
getData(int data)
Used internally.
|
CollisionShape.Type |
getType()
Gets the type of the collision shape.
|
public CollisionShape.Type getType()
public abstract float getData(int data)
data - the data index.public abstract int getData()
public static CollisionShape createMeshCollisionShape()
World3DModel.public static CollisionShape createHullCollisionShape()
World3DModel.public static CollisionShape createBoxCollisionShape(float sizeX, float sizeY, float sizeZ)
sizeX - the width (size along x axis) of the box.sizeY - the height (size along y axis) of the box.sizeZ - the length/depth (size along z axis) of the box.public static CollisionShape createSphereCollisionShape(float radius)
radius - the radius (half size) of the sphere.