Class CollisionShapeParser


  • public class CollisionShapeParser
    extends Object
    Parse and unparsing collisionshapes from/into strings
    Author:
    Darius Dinger
    • Constructor Detail

      • CollisionShapeParser

        public CollisionShapeParser()
    • 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