CylinderCollisionShape constructor


I’m trying to create a physics cylinder but the CylinderCollisionShape constructor seems weird to me :


  • Creates a cylinder shape around the given axis from the given halfextents
  • @param halfExtents the halfextents to use
  • @param axis (0=X,1=Y,2=Z)


    public CylinderCollisionShape(Vector3f halfExtents, int axis) {

    this.halfExtents = halfExtents;

    this.axis = axis;



    I don’t get what halfExtents are… I mean i see two of them (radius and height) but what about the third one ?
1 Like