Merge remote-tracking branch 'bp/master'
This commit is contained in:
@@ -2522,6 +2522,9 @@ class btCompoundShape* BulletMJCFImporter::convertLinkCollisionShapes(int linkIn
|
||||
{
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
}
|
||||
|
||||
} // switch geom
|
||||
|
||||
|
||||
@@ -4142,7 +4142,7 @@ B3_SHARED_API void b3ComputeProjectionMatrix(float left, float right, float bott
|
||||
|
||||
B3_SHARED_API void b3ComputeProjectionMatrixFOV(float fov, float aspect, float nearVal, float farVal, float projectionMatrix[16])
|
||||
{
|
||||
float yScale = 1.0 / tan((3.141592538 / 180.0) * fov / 2);
|
||||
float yScale = 1.0 / tan((B3_PI / 180.0) * fov / 2);
|
||||
float xScale = yScale / aspect;
|
||||
|
||||
projectionMatrix[0 * 4 + 0] = xScale;
|
||||
|
||||
@@ -396,7 +396,7 @@ void TinyRenderObjectData::createCube(float halfExtentsX, float halfExtentsY, fl
|
||||
{
|
||||
m_model->addVertex(halfExtentsX * cube_vertices_textured[i * 9],
|
||||
halfExtentsY * cube_vertices_textured[i * 9 + 1],
|
||||
halfExtentsY * cube_vertices_textured[i * 9 + 2],
|
||||
halfExtentsZ * cube_vertices_textured[i * 9 + 2],
|
||||
cube_vertices_textured[i * 9 + 4],
|
||||
cube_vertices_textured[i * 9 + 5],
|
||||
cube_vertices_textured[i * 9 + 6],
|
||||
|
||||
Reference in New Issue
Block a user