Package com.bulletphysics.collision.shapes

Examples of com.bulletphysics.collision.shapes.CylinderShape


            break;
          }
         
        case CYLINDER_SHAPE_PROXYTYPE:
          {
            CylinderShape cylinder = (CylinderShape) shape;
            int upAxis = cylinder.getUpAxis();

            float radius = cylinder.getRadius();
            Vector3f halfVec = vectorsPool.get();
            float halfHeight = VectorUtil.getCoord(cylinder.getHalfExtentsWithMargin(halfVec), upAxis);

            gl.drawCylinder(radius, halfHeight, upAxis);
           
            vectorsPool.release(halfVec);
View Full Code Here


        if (capsule != null) {
            return new CapsuleShape(capsule.radius, capsule.height);
        }
        CylinderShapeComponent cylinder = entity.getComponent(CylinderShapeComponent.class);
        if (cylinder != null) {
            return new CylinderShape(new Vector3f(cylinder.radius, 0.5f * cylinder.height, cylinder.radius));
        }
        HullShapeComponent hull = entity.getComponent(HullShapeComponent.class);
        if (hull != null) {
            ObjectArrayList<Vector3f> verts = new ObjectArrayList<Vector3f>();
            TFloatIterator iterator = hull.sourceMesh.getVertices().iterator();
View Full Code Here

TOP

Related Classes of com.bulletphysics.collision.shapes.CylinderShape

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.