public static enum CollisionShape.Type extends java.lang.Enum<CollisionShape.Type>
| Enum Constant and Description |
|---|
box
A cuboid shape centered at the origin
|
bvhTriangles
Arbitrary triangles (concave) with bounding volume hierarchy
|
capsule
A capsule shape centered at the origin
|
compound
Multiple collision shapes
|
convexHull
Cloud of vertex defining a convex shape - Fastest kind of arbitrary shapes
|
cylinder
A cylinder shape centered at the origin
|
plane
Static plane
|
sphere
A sphere shape centered at the origin
|
| Modifier and Type | Method and Description |
|---|---|
static CollisionShape.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CollisionShape.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CollisionShape.Type box
public static final CollisionShape.Type sphere
public static final CollisionShape.Type cylinder
public static final CollisionShape.Type capsule
public static final CollisionShape.Type convexHull
public static final CollisionShape.Type bvhTriangles
public static final CollisionShape.Type plane
public static final CollisionShape.Type compound
public static CollisionShape.Type[] values()
for (CollisionShape.Type c : CollisionShape.Type.values()) System.out.println(c);
public static CollisionShape.Type valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullBonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com