- Timestamp:
- May 3, 2011, 5:07:42 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/external/bullet/BulletCollision/CollisionShapes/btConeShape.cpp
r8351 r8393 132 132 133 133 134 void btConeShape::setLocalScaling(const btVector3& scaling) 135 { 136 int axis = m_coneIndices[1]; 137 int r1 = m_coneIndices[0]; 138 int r2 = m_coneIndices[2]; 139 m_height *= scaling[axis] / m_localScaling[axis]; 140 m_radius *= (scaling[r1] / m_localScaling[r1] + scaling[r2] / m_localScaling[r2]) / 2; 141 m_sinAngle = (m_radius / btSqrt(m_radius * m_radius + m_height * m_height)); 142 btConvexInternalShape::setLocalScaling(scaling); 143 }
Note: See TracChangeset
for help on using the changeset viewer.