Skip to content

Commit

Permalink
Version 1.1.3
Browse files Browse the repository at this point in the history
Maintenance version
  • Loading branch information
Kanma committed May 8, 2014
2 parents 18f1912 + 0a9931b commit 8fcb76a
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 6 deletions.
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: cpp

compiler:
- clang
- gcc

env:
- CMAKE_BUILD_TYPE=Debug
- CMAKE_BUILD_TYPE=Release

script:
- mkdir build
- cd build
- cmake -D CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} .. && make
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ endif()

set(ATHENA_PHYSICS_VERSION_MAJOR 1)
set(ATHENA_PHYSICS_VERSION_MINOR 1)
set(ATHENA_PHYSICS_VERSION_PATCH 2)
set(ATHENA_PHYSICS_VERSION_PATCH 3)
set(ATHENA_PHYSICS_VERSION_SUFFIX "")


Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
********************************************************************************
* *
* Athena-Physics *
* Version 1.1.2 *
* Version 1.1.3 *
* http://github.com/Kanma/Athena-Physics *
* *
********************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion dependencies/Athena-Entities
2 changes: 1 addition & 1 deletion dependencies/Athena-Math
2 changes: 1 addition & 1 deletion dependencies/XMake
Submodule XMake updated 1 files
+16 −1 XMake.cmake
9 changes: 9 additions & 0 deletions src/PrimitiveShape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ Math::Real PrimitiveShape::getRadius() const

case SHAPE_SPHERE:
return dynamic_cast<btSphereShape*>(m_pCollisionShape)->getRadius();

case SHAPE_BOX:
// Nothing to do, but the compiler complains if not present
break;
}

return 0.0f;
Expand Down Expand Up @@ -268,6 +272,11 @@ Math::Real PrimitiveShape::getHeight() const
case AXIS_Z:
return dynamic_cast<btCylinderShape*>(m_pCollisionShape)->getHalfExtentsWithMargin().getZ();
}

case SHAPE_BOX:
case SHAPE_SPHERE:
// Nothing to do, but the compiler complains if not present
break;
}

return 0.0f;
Expand Down

0 comments on commit 8fcb76a

Please sign in to comment.