Package de.coreengine.util.bullet
Class CollisionShapeParser
- java.lang.Object
-
- de.coreengine.util.bullet.CollisionShapeParser
-
public class CollisionShapeParser extends Object
Parse and unparsing collisionshapes from/into strings- Author:
- Darius Dinger
-
-
Constructor Summary
Constructors Constructor Description CollisionShapeParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.bulletphysics.collision.shapes.CollisionShape
toShape(String line)
Parsing collision shape from string.static String
toString(com.bulletphysics.collision.shapes.CollisionShape shape)
Convert a collision shape into a string.
-
-
-
Method Detail
-
toShape
public static com.bulletphysics.collision.shapes.CollisionShape toShape(String line)
Parsing collision shape from string. No encapsulation of multiple compound shapes supported! Returning null for convex hull shape, triangle mesh shape or impossible parse- Parameters:
line
- String to parse- Returns:
- Parsed collision shape or null
-
toString
public static String toString(com.bulletphysics.collision.shapes.CollisionShape shape)
Convert a collision shape into a string. No encapsulation of multiple compound shapes supported!- Parameters:
shape
- Shape to convert- Returns:
- Converted shape as string
-
-