Merge branch 'master' of https://github.com/erwincoumans/bullet3
This commit is contained in:
@@ -4005,7 +4005,7 @@ bool PhysicsServerCommandProcessor::processSaveWorldCommand(const struct SharedM
|
||||
FILE* f = fopen(clientCmd.m_sdfArguments.m_sdfFileName, "w");
|
||||
if (f)
|
||||
{
|
||||
char line[1024];
|
||||
char line[2048];
|
||||
{
|
||||
sprintf(line, "import pybullet as p\n");
|
||||
int len = strlen(line);
|
||||
|
||||
@@ -1276,7 +1276,10 @@ void EGLRendererVisualShapeConverter::render(const float viewMat[16], const floa
|
||||
|
||||
render();
|
||||
|
||||
m_data->m_camera.disableVRCamera();
|
||||
// don't disableVRCamera, see issue https://github.com/bulletphysics/bullet3/issues/2390
|
||||
// todo: check out why
|
||||
//
|
||||
// m_data->m_camera.disableVRCamera();
|
||||
|
||||
//cout<<viewMat[4*0 + 0]<<" "<<viewMat[4*0+1]<<" "<<viewMat[4*0+2]<<" "<<viewMat[4*0+3] << endl;
|
||||
//cout<<viewMat[4*1 + 0]<<" "<<viewMat[4*1+1]<<" "<<viewMat[4*1+2]<<" "<<viewMat[4*1+3] << endl;
|
||||
|
||||
@@ -117,14 +117,14 @@ for x in range(32):
|
||||
batchPositions.append(
|
||||
[x * meshScale[0] * 5.5, y * meshScale[1] * 5.5, (0.5 + z) * meshScale[2] * 2.5])
|
||||
|
||||
bodyUid = p.createMultiBody(baseMass=0,
|
||||
bodyUids = p.createMultiBody(baseMass=0,
|
||||
baseInertialFramePosition=[0, 0, 0],
|
||||
baseCollisionShapeIndex=collisionShapeId,
|
||||
baseVisualShapeIndex=visualShapeId,
|
||||
basePosition=[0, 0, 2],
|
||||
batchPositions=batchPositions,
|
||||
useMaximalCoordinates=True)
|
||||
p.changeVisualShape(bodyUid, -1, textureUniqueId=texUid)
|
||||
p.changeVisualShape(bodyUids[0], -1, textureUniqueId=texUid)
|
||||
|
||||
p.syncBodyInfo()
|
||||
print("numBodies=", p.getNumBodies())
|
||||
|
||||
Reference in New Issue
Block a user