mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-13 21:30:09 +00:00
use b3RobotJointInfo instead of b3JointInfo, so it is initialized.
don't reset the camera in SharedMemoryInProcessPhysicsC_API
This commit is contained in:
parent
b347d9f667
commit
0b41fe1a49
@ -57,7 +57,7 @@ public:
|
||||
args.m_startPosition.setValue(0, i * 0.05, 1);
|
||||
cubeIds[i] = m_robotSim.loadURDF("cube_small.urdf", args);
|
||||
|
||||
b3JointInfo jointInfo;
|
||||
b3RobotJointInfo jointInfo;
|
||||
|
||||
jointInfo.m_parentFrame[1] = -0.025;
|
||||
jointInfo.m_childFrame[1] = 0.025;
|
||||
@ -102,12 +102,11 @@ public:
|
||||
|
||||
virtual void resetCamera()
|
||||
{
|
||||
// float dist = 1;
|
||||
// float pitch = -20;
|
||||
// float yaw = -30;
|
||||
// float targetPos[3] = {0, 0.2, 0.5};
|
||||
|
||||
// m_guiHelper->resetCamera(dist, yaw, pitch, targetPos[0], targetPos[1], targetPos[2]);
|
||||
float dist = 1;
|
||||
float pitch = -20;
|
||||
float yaw = -30;
|
||||
float targetPos[3] = {0, 0.2, 0.5};
|
||||
m_guiHelper->resetCamera(dist, yaw, pitch, targetPos[0], targetPos[1], targetPos[2]);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -163,7 +163,7 @@ public:
|
||||
options.m_skipGraphicsUpdate = skipGraphicsUpdate;
|
||||
m_physicsServerExample = PhysicsServerCreateFuncBullet2(options);
|
||||
m_physicsServerExample->initPhysics();
|
||||
m_physicsServerExample->resetCamera();
|
||||
//m_physicsServerExample->resetCamera();
|
||||
setSharedMemoryInterface(m_sharedMem);
|
||||
m_clock.reset();
|
||||
m_prevTime = m_clock.getTimeMicroseconds();
|
||||
|
Loading…
Reference in New Issue
Block a user