mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-19 05:20:06 +00:00
tweaks in camera position in demo
This commit is contained in:
parent
f943204aa2
commit
6bcb5b9d5f
Binary file not shown.
@ -38,9 +38,9 @@ public:
|
||||
:useOpenCL(true),
|
||||
preferredOpenCLPlatformIndex(-1),
|
||||
preferredOpenCLDeviceIndex(-1),
|
||||
arraySizeX(30),
|
||||
arraySizeX(20),
|
||||
arraySizeY(20),
|
||||
arraySizeZ(30),
|
||||
arraySizeZ(20),
|
||||
m_useConcaveMesh(false),
|
||||
gapX(14.3),
|
||||
gapY(14.0),
|
||||
|
@ -2,7 +2,7 @@
|
||||
#include "Bullet2FileDemo.h"
|
||||
#include "BulletDataExtractor.h"
|
||||
#include "GpuRigidBodyDemoInternalData.h"
|
||||
|
||||
#include "OpenGLWindow/GLInstancingRenderer.h"
|
||||
|
||||
Bullet2FileDemo::Bullet2FileDemo()
|
||||
{
|
||||
@ -37,4 +37,8 @@ void Bullet2FileDemo::setupScene(const ConstructionInfo& ci)
|
||||
}
|
||||
// m_loader = new btBulletDataExtractor(*ci.m_instancingRenderer,*m_data->m_np,*m_data->m_rigidBodyPipeline);
|
||||
// m_loader->convertAllObjects(bulletFile);
|
||||
|
||||
b3Vector3 pos(-20,10,0);
|
||||
ci.m_instancingRenderer->setCameraTargetPosition(pos);
|
||||
ci.m_instancingRenderer->setCameraDistance(10);
|
||||
}
|
||||
|
@ -33,6 +33,7 @@ bool dumpContactStats = false;
|
||||
|
||||
|
||||
|
||||
|
||||
b3GpuRigidBodyPipeline::b3GpuRigidBodyPipeline(cl_context ctx,cl_device_id device, cl_command_queue q,class b3GpuNarrowPhase* narrowphase, class b3GpuSapBroadphase* broadphaseSap , class b3DynamicBvhBroadphase* broadphaseDbvt)
|
||||
{
|
||||
m_data = new b3GpuRigidBodyPipelineInternalData;
|
||||
|
Loading…
Reference in New Issue
Block a user