Examples of CylinderShapeX


Examples of com.bulletphysics.collision.shapes.CylinderShapeX

  // to be implemented by the demo
  @Override
  public void renderme() {
    updateCamera();

    CylinderShapeX wheelShape = new CylinderShapeX(new Vector3f(wheelWidth, wheelRadius, wheelRadius));
    Vector3f wheelColor = new Vector3f(1, 0, 0);

    for (int i = 0; i < vehicle.getNumWheels(); i++) {
      // synchronize the wheels with the (interpolated) chassis worldtransform
      vehicle.updateWheelTransform(i, true);
View Full Code Here

Examples of com.bulletphysics.collision.shapes.CylinderShapeX

    if (USE_BOX_SHAPE) {
      colShape = new BoxShape(new Vector3f(1f, 1f, 1f));
    }
    else {
      colShape = new CompoundShape();
      CollisionShape cylinderShape = new CylinderShapeX(new Vector3f(4, 1, 1));
      CollisionShape boxShape = new BoxShape(new Vector3f(4f, 1f, 1f));
      Transform localTransform = new Transform();
      localTransform.setIdentity();
      ((CompoundShape)colShape).addChildShape(localTransform, boxShape);
      Quat4f orn = new Quat4f();
View Full Code Here

Examples of com.bulletphysics.collision.shapes.CylinderShapeX

    updateCamera();

    //float[] m = new float[16];
    //int i;

    CylinderShapeX wheelShape = new CylinderShapeX(new Vector3f(wheelWidth,wheelRadius,wheelRadius));
    Vector3f wheelColor = new Vector3f(1,0,0);

    Vector3f worldBoundsMin = new Vector3f(),worldBoundsMax = new Vector3f();
    getDynamicsWorld().getBroadphase().getBroadphaseAabb(worldBoundsMin,worldBoundsMax);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.